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
james@eaerich.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.