Searched refs:ptm (Results 1 – 3 of 3) sorted by relevance
99 struct tm *ptm; in main() local161 ptm = (struct tm*)malloc(sizeof(struct tm)); in main()164 localtime_r(&nepoch, ptm); in main()166 printf("Seconds: %d\n", ptm->tm_sec); in main()167 printf("Minutes: %d\n", ptm->tm_min); in main()168 printf("Hour: %d\n", ptm->tm_hour); in main()169 printf("Day of Month: %d\n", ptm->tm_mday); in main()170 printf("Month: %d\n", ptm->tm_mon); in main()171 printf("Year: %d\n", ptm->tm_year); in main()172 printf("Day of week: %d\n", ptm->tm_wday); in main()[all …]
92 struct tm *ptm = localtime(&unixtime); in CFDateToDateTime() local93 nRet.Year = ptm->tm_year+1900; in CFDateToDateTime()94 nRet.Month = ptm->tm_mon+1; in CFDateToDateTime()95 nRet.Day = ptm->tm_mday; in CFDateToDateTime()96 nRet.Hours = ptm->tm_hour; in CFDateToDateTime()97 nRet.Minutes = ptm->tm_min; in CFDateToDateTime()98 nRet.Seconds = ptm->tm_sec; in CFDateToDateTime()
565 local void unzlocal_DosDateToTmuDate (ulDosDate, ptm)567 tm_unz* ptm;571 ptm->tm_mday = (uInt)(uDate&0x1f) ;572 ptm->tm_mon = (uInt)((((uDate)&0x1E0)/0x20)-1) ;573 ptm->tm_year = (uInt)(((uDate&0x0FE00)/0x0200)+1980) ;575 ptm->tm_hour = (uInt) ((ulDosDate &0xF800)/0x800);576 ptm->tm_min = (uInt) ((ulDosDate&0x7E0)/0x20) ;577 ptm->tm_sec = (uInt) (2*(ulDosDate&0x1f)) ;