Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
613 B

  1. .TH fmt_iso8601 3
  2. .SH NAME
  3. fmt_iso8601 \- write a date in ASCII conforming to ISO-8601
  4. .SH SYNTAX
  5. .B #include <libowfat/fmt.h>
  6. size_t \fBfmt_iso8601\fP(char *\fIdest\fR,time_t \fIsource\fR);
  7. .SH DESCRIPTION
  8. fmt_iso8601 writes a date in ASCII representation as ISO-8601 defines it:
  9. "2014-05-27T19:22:16Z". ISO-8601 also allows to store a sub-second part
  10. and a time zone, but fmt_iso8601 does not support that.
  11. fmt_iso8601 does not append \\0.
  12. If \fIdest\fR equals FMT_LEN (i.e. is zero), fmt_iso8601 returns the number
  13. of bytes it would have written.
  14. The return value of fmt_iso8601 is 20 until Jan 1st 10000.