Re: time module vs. datetime module: plain language for beginners

2015-03-27 Thread Ian Kelly
On Fri, Mar 27, 2015 at 6:31 PM, Jinghui Niu wrote: > On Wednesday, March 25, 2015 at 2:17:03 PM UTC-7, Jinghui Niu wrote: >> I am learning python programming. One thing that gives me a lot of confusion >> is the division of labours between the time module and the datetime module. >> >> As it tur

Re: time module vs. datetime module: plain language for beginners

2015-03-27 Thread Jinghui Niu
On Wednesday, March 25, 2015 at 2:17:03 PM UTC-7, Jinghui Niu wrote: > I am learning python programming. One thing that gives me a lot of confusion > is the division of labours between the time module and the datetime module. > > As it turns out to be, time module is not only about time, it's abo

Re: time module vs. datetime module: plain language for beginners

2015-03-25 Thread Mark Lawrence
On 25/03/2015 23:49, Ian Kelly wrote: On Wed, Mar 25, 2015 at 3:16 PM, Jinghui Niu wrote: I am learning python programming. One thing that gives me a lot of confusion is the division of labours between the time module and the datetime module. As it turns out to be, time module is not only abo

Re: time module vs. datetime module: plain language for beginners

2015-03-25 Thread Ian Kelly
On Wed, Mar 25, 2015 at 3:16 PM, Jinghui Niu wrote: > I am learning python programming. One thing that gives me a lot of confusion > is the division of labours between the time module and the datetime module. > > As it turns out to be, time module is not only about time, it's about date > too. A

Re: time module vs. datetime module: plain language for beginners

2015-03-25 Thread Steven D'Aprano
On Thu, 26 Mar 2015 08:16 am, Jinghui Niu wrote: > I am learning python programming. One thing that gives me a lot of > confusion is the division of labours between the time module and the > datetime module. > > As it turns out to be, time module is not only about time, it's about date > too. And

time module vs. datetime module: plain language for beginners

2015-03-25 Thread Jinghui Niu
I am learning python programming. One thing that gives me a lot of confusion is the division of labours between the time module and the datetime module. As it turns out to be, time module is not only about time, it's about date too. And datetime doesn't natively support timezone, you have to cre