GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
mess822_date(3) FreeBSD Library Functions Manual mess822_date(3)

mess822_date - print a timestamp in RFC 822 format

#include <mess822.h>

int mess822_date(&sa,&t);

stralloc sa;
mess822_time t;

mess822_date takes the timestamp in t and puts it into sa in RFC 822 format. It returns 1 on success, 0 if it runs out of memory.

See http://pobox.com/~djb/proto/immhf/date.html for a description of the RFC 822 timestamp format. Typical example:

   16 Aug 1998 15:09:01 -0000

The timestamp in t has the following structure. If t.known is 0 then there is no timestamp; mess822_date prints an empty string. If t.known is 1 then t.ct contains a date and time in UTC in struct caltime format, with no information about the timestamp creator's time zone. If t.known is 2 then t.ct contains a date and time in the timestamp creator's time zone.

mess822_date can tolerate out-of-range numbers for month, day, hour, minute, second, and zone, though in this case it no longer guarantees that its output will make sense.

mess822_date can handle years from 1900 through at least 2000000000.

caltime(3), mess822(3), mess822_when(3)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.