1TIME_FIELDS_FROM_FILETIME(3) http://www.synce.org/TIME_FIELDS_FROM_FILETIME(3)
2
3
4

NAME

6       time_fields_from_filetime - convert between FILETIME and TIME_FIELDS
7

SYNOPSIS

9       #include <synce.h>
10
11       void time_fields_from_filetime(const FILETIME *filetime, TIME_FIELDS *timeFields);
12
13       bool time_fields_to_filetime(const TIME_FIELDS *timeFields, const FILETIME *filetime);
14

DESCRIPTION

16       The time_fields_from_filetime() function converts a FILETIME value into
17       the existing broken down TIME_FIELDS struct pointed to  by  timeFields.
18       time_fields_to_filetime() does the reverse.
19
20              typedef struct _TIME_FIELDS {
21                  CSHORT Year;          /* Specifies a value from 1601 on. */
22                  CSHORT Month;         /* Specifies a value from 1 to 12. */
23                  CSHORT Day;           /* Specifies a value from 1 to 31. */
24                  CSHORT Hour;          /* Specifies a value from 0 to 23. */
25                  CSHORT Minute;        /* Specifies a value from 0 to 59. */
26                  CSHORT Second;        /* Specifies a value from 0 to 59. */
27                  CSHORT Milliseconds;  /* Specifies a value from 0 to 999. */
28                  CSHORT Weekday;       /* Specifies a value from 0 to 6 (Sunday to Saturday). */
29              } TIME_FIELDS;
30

RETURN VALUE

32       The time_fields_to_filetime() function returns FALSE on encountering an
33       invalid value, or TRUE if successful.
34

SEE ALSO

36       synce(7)
37
38
39
40The SynCE Project                 2007-08-26      TIME_FIELDS_FROM_FILETIME(3)
Impressum