[reportlab-users] Problems Printing Dates & Times
Rich Shepard
rshepard at appl-ecosys.com
Thu Nov 1 20:21:14 EDT 2007
On Thu, 1 Nov 2007, Tim Roberts wrote:
> A few minutes with the command-line interpreter would probably have shown
> that more quickly than this mailing list.
I played with the functions using ipython. The Python Cookbook describes
now as a variable assigned datetime.datetime.now(). When I used it that way
and then 'print now' the string was printed.
> The function returns a datetime object. The string representation is
> "2007-11-01 15:21:11.027000". If you want more control over your date
> format, you use the "strftime" method to format it to your liking.
Shall do.
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the reportlab-users
mailing list