File: scan_iso8601.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (17 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.TH scan_iso8601 3
.SH NAME
scan_iso8601 \- parse an ISO-8601 timestamp
.SH SYNTAX
.B #include <libowfat/scan.h>

size_t \fBscan_iso8601\fP(const char *\fIsrc\fR,struct timespec *\fIdest\fR);
.SH DESCRIPTION
scan_iso8601 parses a timestamp as defined in ISO-8601 into a struct
timespec.  It returns the number of bytes read from \fIsrc\fR (0 for
parse error).

scan_iso8601 supports input timestamps in time zones other than UTC
even though fmt_iso8601 does not. Note that the returned time_t is
always in UTC, even if a local time was given.
.SH "SEE ALSO"
fmt_iso8601(3)