Logo Search packages:      
Sourcecode: nbsmtp version File versions  Download package

void arpadate ( char *  buf  ) 

Generates a date with the RFC822 (ARPA Internet Text) format.

[out] buf Where to store the string

Definition at line 88 of file util.c.

Referenced by nbsmtp_header().

      struct tm *date;
      time_t now;
      const char *const format = "%a, %e %b %Y %H:%M:%S %z (%Z)";

      now = time(NULL);

      date = localtime((const time_t *)&now);

Generated by  Doxygen 1.6.0   Back to index