+++ /dev/null
-
-/* Data structure returned by "parseddate".
- *
- * A value of NULL for "error" means that no syntax errors were detected
- * in the argument value. A non-NULL value points to the byte position
- * within the argument string at which it was discovered that an error
- * existed.
- *
- * A value of -1 means that the field was never given a value, or that
- * the value supplied was invalid. (A side effect of this convention is
- * that a time zone offset of -1 -- i.e., one minute west of GMT -- is
- * indistinguishable from an invalid or unspecified time zone offset.
- * Since the likelihood of "-0001" being a legitimate time zone is nil,
- * banning it is a small price to pay for the uniformity of using -1 as
- * a "missing/invalid" indication for all fields.)
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-struct parseddate
-{
- long unixtime; /* UNIX internal representation of time */
- char *error; /* NULL = OK; non-NULL = error */
- int year; /* year (1600 on) */
- int month; /* month (1-12) */
- int day; /* day of month (1-31) */
- int hour; /* hour (0-23) */
- int minute; /* minute (0-59) */
- int second; /* second (0-59) */
- int zone; /* time zone offset in minutes -- "+" or "-" */
- int dst; /* daylight savings time (0 = no, 1 = yes) */
- int weekday; /* real day of week (0-6; 0 = Sunday) */
- int c_weekday; /* claimed day of week (0-6; 0 = Sunday) */
-};
-
-struct parseddate *parsedate(char *date);
-
-#ifdef __cplusplus
-}
-#endif
-