Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24896

Re: simpler increment of time values?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jeanpierreda@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'check.': 0.09; 'minus': 0.09; 'solution,': 0.09; 'cc:addr:python-list': 0.10; '12:57': 0.16; 'subject:values': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'first,': 0.27; 'guess': 0.27; 'thoughts': 0.27; 'message- id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'received:209.85.160.46': 0.32; 'received:google.com': 0.34; 'jason': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'anything': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'header:Received:5': 0.40; 'jul': 0.65; 'unusual': 0.71; 'notion': 0.84; 'imagine': 0.96
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wBQoLtOMhekq9ewr1aYDMQX6P+u/K7ZA5k7moX1BGDs=; b=C+cZ7DgP0dTXS5xYto3LazL5lhiFEWxKTp4bMMwNGr58zVraxSjqbkY6Zs7Ia/SOfH +kDavFLQsw7NAFRe8DisyBz8lCDw1QkS3iC8Rf2VZ9tCPnzWiktW3oLsnDt4NyB/E7oK lKmVkIQRj0kumapEtFF78eYptH+mMOzEyQRV+CplXTcWYkSVlzqlMQf570iyWBg80qLI LWKSYfuaVKRuWNJyk3NczeBvK+gO812ZKNkgvS0fcDT+EzYWCLmeyKDcU/FXkrfQdRxz 9fSUB+MmEKw7TOD2TKQGnfI/3LYUEi8w4IzJHvblXbA/faTt0OdvhdSlU695OZczFFTM 2UQg==
MIME-Version 1.0
In-Reply-To <CANy1k1jo_MN6tGC4abkze2q7MoA1DLgVz98wDgL+oPmOOZ0JbA@mail.gmail.com>
References <CAHzaPEO5D498zepGC0EVVURdUE7qxYJk6ksd5yS_Xj_hh5iiyQ@mail.gmail.com> <CANy1k1jo_MN6tGC4abkze2q7MoA1DLgVz98wDgL+oPmOOZ0JbA@mail.gmail.com>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date Thu, 5 Jul 2012 01:05:45 -0400
Subject Re: simpler increment of time values?
To Jason Friedman <jason@powerpull.net>
Content-Type text/plain; charset=UTF-8
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.1811.1341464789.4697.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1341464789 news.xs4all.nl 6907 [2001:888:2000:d::a6]:42691
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24896

Show key headers only | View raw


On Thu, Jul 5, 2012 at 12:57 AM, Jason Friedman <jason@powerpull.net> wrote:
> I have some thoughts on a solution, but first, what is 12:45 plus 12
> hours?  What is 12:45 minus 13 hours?

Is there anything unusual that can happen for a notion of time that is
dateless, timezone-unaware, and DST-free?

I would imagine that under these constraints the answers are always
0:45 and 23:45 respectively. Although I guess it doesn't hurt to check.

-- Devin

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: simpler increment of time values? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-05 01:05 -0400

csiph-web