date_from_tm man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

DATE_FROM_TM(3)		     http://www.synce.org/	       DATE_FROM_TM(3)

NAME
       date_from_tm - convert between tm struct and Windows DATE value

SYNOPSIS
       #include <synce.h>

       bool date_from_tm(struct tm *pTm, DATE *pDateOut);

       bool date_to_tm(DATE dateIn, DWORD dwFlags, struct tm *pTm);

DESCRIPTION
       The  date_from_tm() function converts a tm struct into the Windows DATE
       field pointed to by pDateOut.  Only years after 1900 are converted. The
       fields tm.tm_wday, tm.tm_yday and tm.tm_isdst are not used.

       date_to_tm() does the reverse. It only fills the fields tm_sec, tm_min,
       tm_hour, tm_year, tm_day, tm_mon. Dates before January 1st 1900 are not
       supported.   dwFlags  should  be 0, DATE_TIMEVALUEONLY to omit the date
       information or DATE_DATEVALUEONLY to omit time information. Whereas the
       tm.tm_year  field  usually  holds  the number of years since 1900, this
       function provides the complete year.

RETURN VALUE
       Both functions return FALSE on encountering an invalid  value  or  year
       earlier than 1900, or TRUE if successful.

SEE ALSO
       synce(7)

The SynCE Project		  2007-08-26		       DATE_FROM_TM(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net