Thank you all, very useful.
Claude
On Mar 31, 4:08 pm, Dan Drake wrote:
> On Thu, 31 Mar 2011 at 05:36AM -0700, clodemil wrote:
> > Is it possible to call up the calendar date and time, to be used in,
> > for instance, m=list(measurement,date) ?
>
> Python (and hence Sage) has a number of modules
sage: import time
sage: time.asctime(time.localtime())
'Thu Mar 31 15:36:30 2011'
On 31 Mar, 15:15, kcrisman wrote:
> This could be useful:sage: import datetime
> sage: datetime.datetime.now()
> datetime.datetime(2011, 3, 31, 9, 13, 0, 932345)
> And there are lots of methods and string formatting
This could be useful:sage: import datetime
sage: datetime.datetime.now()
datetime.datetime(2011, 3, 31, 9, 13, 0, 932345)
And there are lots of methods and string formatting one can do.
See http://www.saltycrane.com/blog/2008/06/how-to-get-current-date-and-time-in/
But I'm sure there are even bet