【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.8.4 convert_time_to_tm
Contents
Description
Converts a time value to a structure.
Syntax
void convert_time_to_tm( time_t * pTime, TM * pTM )
Parameters
- pTime
- [input]pointer to a time_t variable
- pTM
- [output]pointer to a TM structure to get the result
Return
Examples
EX1
void convert_time_to_tm_ex1() { TM tm1; time_t ltime; _tzset(); // Get UNIX-style time and display as number and string. time( <ime ); convert_time_to_tm(<ime, &tm1 ); printf( "Coordinated universal time:\t\t%s", asctime( &tm1 ) ); }
Remark
See Also
Header to Include
origin.h