Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35999
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; '(so': 0.07; 'suppose': 0.07; '(it': 0.09; 'eat': 0.09; 'timestamp': 0.09; 'assume': 0.11; 'essential': 0.15; 'file,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'seconds,': 0.16; 'subject: \n ': 0.16; 'utc': 0.16; 'wrote:': 0.17; 'differ': 0.17; 'thu,': 0.17; 'widget': 0.17; 'jan': 0.18; '>>>': 0.18; 'sort': 0.21; 'supposed': 0.21; 'clock': 0.22; 'tells': 0.22; 'second': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'opposed': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'received:209.85.212': 0.28; 'chris': 0.28; 'run': 0.28; '"the': 0.29; "i'm": 0.29; 'figure': 0.30; 'resolution': 0.30; 'quickly': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'server': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'but': 0.36; 'display': 0.36; 'york': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'some': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'your': 0.60; 'easy': 0.60; 'between': 0.63; 'to,': 0.65; 'date,': 0.65; 'hours': 0.66; 'smith': 0.71; 'day': 0.73; 'article': 0.78; '2013': 0.84; 'subject:Using': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ymFWMMmrKNFwZjfyrhilDm9eT85nF5lZtz7PHYdRJvg=; b=Bz1O55ylxPOlWpMIfAdJpE/uVmliUmRE7I2WjXq5FutlQe1C9ffVp6XhuQhMijYqsj 5z1khsKTVBxkyGPKApM7dVkmeJMTcP++Sr5gfjgJG1UCk0rqLcDX04Z9Z27wBbMXdYLE 9PBPIrWcOSGOZ8QywyUFxEvNTqY5x+y3OOvQiXUSUstUl+b5ezO+OyuNvS2jrWyfb0Bv KtWcJSk7Txr+4RIMPq6q6bNKa5K/XXAdI1UyDz/gM1joYfLZvdetyA4CKMMgnPoI75fH gmNnr/29NhNGYGCLHujAwtz+kc8mABkcI290r8xHHXmTqTwgzoOB74hYvNvQrqXBitHu mE6Q== |
| MIME-Version | 1.0 |
| In-Reply-To | <kc1qm2$mb7$1@panix2.panix.com> |
| References | <dfd18cf3-e2c0-4f0e-a4c1-a72924039a15@googlegroups.com> <roy-358706.09280402012013@news.panix.com> <mailman.1574.1357138278.29569.python-list@python.org> <kc1qm2$mb7$1@panix2.panix.com> |
| Date | Thu, 3 Jan 2013 04:34:32 +1100 |
| Subject | Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1579.1357148075.29569.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1357148075 news.xs4all.nl 6966 [2001:888:2000:d::a6]:58705 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:35999 |
Show key headers only | View raw
On Thu, Jan 3, 2013 at 4:27 AM, Roy Smith <roy@panix.com> wrote: > In article <mailman.1574.1357138278.29569.python-list@python.org>, > Chris Angelico <rosuav@gmail.com> wrote: > >>> I assume you mean timestamps. A date doesn't need to worry about UTC >>> the way a timestamp does. > > I'm not sure how a date and a timestamp differ in any significant > way. A date is just a very low-precision time. > > I suppose what's really essential is a way to quickly see the current > UTC time. That way, when you're looking at some event in a log file, > it's easy to figure out, "that was 20 minutes ago", as opposed to, > "that was 5 hours and 20 minutes ago". I run my desktop in New York > time (so I know when I'm supposed to eat lunch), but I also have a > second clock widget displaying UTC time just below it. Right now, > it's 17:22. The difference between "20 minutes ago" and "5 hours and 20 minutes ago" doesn't really come up when your resolution is 86400 seconds, as is the case with a date :) I have the same sort of thing. My desktop's clock is on local time (4:33AM), but my server tells me, when I type 'who', that "The current UTC (GMT) time is: Wed 17:33:35" (it doesn't bother with the date, only the day of week, as the main purpose of that time display is to help people synchronize on weekly events). ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Using mktime to convert date to seconds since epoch - omitting elements from the tuple? Victor Hooi <victorhooi@gmail.com> - 2013-01-02 00:01 -0800
Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? Vlastimil Brom <vlastimil.brom@gmail.com> - 2013-01-02 09:33 +0100
Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? Dave Angel <davea@dejaviewphoto.com> - 2013-01-02 09:06 -0500
Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? Roy Smith <roy@panix.com> - 2013-01-02 09:28 -0500
Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? Chris Angelico <rosuav@gmail.com> - 2013-01-03 01:51 +1100
Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? roy@panix.com (Roy Smith) - 2013-01-02 12:27 -0500
Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? Chris Angelico <rosuav@gmail.com> - 2013-01-03 04:34 +1100
Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? Dave Angel <d@davea.name> - 2013-01-02 12:44 -0500
Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? Barry Scott <barry@barrys-emacs.org> - 2013-01-03 23:46 +0000
csiph-web