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


Groups > comp.lang.python > #17356

Re: modifying a time.struct_time

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.048
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'figuring': 0.09; 'am,': 0.12; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'subject:skip:t 10': 0.15; 'eckhardt': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'seconds,': 0.16; 'wrote:': 0.18; 'seconds': 0.21; 'dec': 0.22; "doesn't": 0.22; 'asked': 0.22; 'header:In-Reply-To:1': 0.22; 'obviously': 0.25; 'sat,': 0.25; 'message-id:@mail.gmail.com': 0.28; 'idea': 0.32; 'rather': 0.33; 'to:addr:python-list': 0.34; 'right,': 0.34; 'things': 0.34; '17,': 0.34; 'duplicate': 0.34; 'received:google.com': 0.37; 'not,': 0.37; 'received:209.85': 0.38; "i'd": 0.39; 'why': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'difference': 0.40; '2011': 0.61; 'types': 0.61; 'your': 0.61; '12:32': 0.84; '62,': 0.84; 'ranges': 0.91; 'year"': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xrSL0ZG2UFrMFW4hS5u4XyzFHyxfacbGdJkZ54bxz84=; b=kCRJz91I7i66JncEEEWKQk6izgOthiNp4knGkbJdFbFDHej8nmA1SLcyhZaVn7GSc7 pEHeOiN+SnjPemrrRl8SNppSybEzKPsO2JCJs/044c0TWv5oA31o640UgYjuIbExFARu t42tzX7YII9V9PvGRIQ5lcIFGhPPBVpyBzp2w=
MIME-Version 1.0
In-Reply-To <jrtrr8-r77.ln1@satorlaser.homedns.org>
References <iigrr8-e96.ln1@satorlaser.homedns.org> <jrtrr8-r77.ln1@satorlaser.homedns.org>
Date Sat, 17 Dec 2011 01:24:53 +1100
Subject Re: modifying a time.struct_time
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.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.3728.1324045497.27778.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1324045497 news.xs4all.nl 6846 [2001:888:2000:d::a6]:35960
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:17356

Show key headers only | View raw


On Sat, Dec 17, 2011 at 12:32 AM, Ulrich Eckhardt
<ulrich.eckhardt@dominolaser.com> wrote:
> Concerning the idea to use seconds, I'd rather not, because already the
> number of seconds per minute ranges from 60 to 62, and it doesn't get better
> with things like months (28...31 days), years (365...366 days) and all other
> types built upon them.

Right, which is why I asked how important the difference between "365
days" and "1 year" is. Obviously if your goal is one entire calendar
year, then you don't want to duplicate the work of figuring out how
many seconds that is.

ChrisA

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


Thread

modifying a time.struct_time Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-12-16 10:45 +0100
  Re: modifying a time.struct_time Mazen Harake <mazen.harake@gmail.com> - 2011-12-16 11:32 +0100
  Re: modifying a time.struct_time Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-16 10:44 +0000
    Re: modifying a time.struct_time Tim Golden <mail@timgolden.me.uk> - 2011-12-16 10:50 +0000
  Re: modifying a time.struct_time Chris Angelico <rosuav@gmail.com> - 2011-12-16 21:44 +1100
  Re: modifying a time.struct_time Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-12-16 14:32 +0100
    Re: modifying a time.struct_time Chris Angelico <rosuav@gmail.com> - 2011-12-17 01:24 +1100
  Re: modifying a time.struct_time Jason Friedman <jason@powerpull.net> - 2011-12-24 06:04 +0000
  Re: modifying a time.struct_time Chris Angelico <rosuav@gmail.com> - 2011-12-24 18:13 +1100

csiph-web