On Wed, 12 Dec 2001, Walden H. Leverich wrote: > I have a need to retrieve the current time (seconds, not milliseconds) and > format it thus: > > Wed, 12 Dev 2001 13:21:01 -0500 > > That is the format for date-time as described in RFC2822. I can retrieve the > current date/time using the unix APIs, but I'd still have to format the > bloody thing. I'm hoping I'm either 1) missing an api, or 2) someone has > written a generic date/time formatting routing they'd care to share. I don't know if the unix date() API is available? If so then you should be able to use to get the date in whatever format you want. James Rich firstname.lastname@example.org
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.