newbie printing question

Emile van Sebille emile at fenx.com
Tue Oct 16 11:08:50 EDT 2001


Take a look at the mxDateTime docs.  In particular, look at strftime.

HTH,

--

Emile van Sebille
emile at fenx.com

---------
<adina_levin at mindspring.com> wrote in message
news:9qhdpm$ibl$1 at slb7.atl.mindspring.net...
> this is the catch:
>
> TimeNow=mxDateTime.now()
>
> TimeNow is a DateTime object, not a string.
>
> "Martin Franklin" <martin.franklin at westgeo.com> wrote in message
> news:9qgoed$1l60$1 at mail1.wg.waii.com...
> > adina_levin at mindspring.com wrote:
> >
> > > I'd like to create a string with the current date and time. I've got
the
> > > mxDateTime library, so far so good.
> > >
> > > print mxDateTime.now() will generate the date and time to the screen.
> > > write will send it to a file.
> > >
> > > But how can I assign this to a string?
> > >
> > > I will be most thankful and embarrassed to hear the answer to this
> > > question. It oughta be obvious!
> > >
> > >
> > >
> >
> > To create a string variable I guess you need to assign it like so:
> >
> > TimeNow=mxDateTime.now()
> >
> > print TimeNow
> >
> >
>
>




More information about the Python-list mailing list