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


Groups > comp.lang.python > #65726

Re: Python 2.7.6 help with modules

Subject Re: Python 2.7.6 help with modules
From Scott W Dunning <swdunning@cox.net>
Date 2014-02-08 23:00 -0700
References <032F2E23-6983-4710-B087-C1771B66C3EF@cox.net> <635C857D-1F7A-4F95-B3A7-F1A3C69BF137@cox.net> <1DA52F3B-CE00-4E47-BE84-C07482966FD7@cox.net> <Q1oo1n00J3bjUJS011opN8>
Newsgroups comp.lang.python
Message-ID <mailman.6571.1391925617.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Feb 8, 2014, at 6:46 PM, Chris Angelico <rosuav@gmail.com> wrote:
> That's certainly effective. It's going to give you the right result. I
> would be inclined to start from the small end and strip off the
> seconds first, then the minutes, etc, because then you're working with
> smaller divisors (60, 60, 24, 7 instead of 604800, 86400, 3600, 60);
> most people will understand that a week is 7 days, but only people who
> work with DNS will know that it's 604800 seconds. But both work.

How would working from the small end (seconds) first and going up to weeks allow me to work with the smaller divisors?  Wouldn’t it still have to be in seconds?  

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


Thread

Re: Python 2.7.6 help with modules Scott W Dunning <swdunning@cox.net> - 2014-02-08 23:00 -0700

csiph-web