Searched refs:tm_ptr (Results 1 – 10 of 10) sorted by relevance
19 struct tm *tm_ptr; in main() local24 tm_ptr = gmtime(&the_time); in main()29 if ((tm_ptr->tm_sec >= 0) && (tm_ptr->tm_sec < 60)) { in main()30 printf("sec %02d\n", tm_ptr->tm_sec); in main()37 if ((tm_ptr->tm_min >= 0) && (tm_ptr->tm_min <= 59)) { in main()38 printf("min %02d\n", tm_ptr->tm_min); in main()45 if ((tm_ptr->tm_hour >= 0) && (tm_ptr->tm_hour <= 23)) { in main()46 printf("hour %02d\n", tm_ptr->tm_hour); in main()53 if ((tm_ptr->tm_mday >= 1) && (tm_ptr->tm_mday <= 31)) { in main()54 printf("mday %02d\n", tm_ptr->tm_mday); in main()[all …]
19 struct tm *tm_ptr; in main() local23 tm_ptr = NULL; in main()24 tm_ptr = gmtime(&the_time); in main()26 if (tm_ptr != NULL) { in main()
18 struct tm tm_ptr; variable24 tm_ptr.tm_year = 2001 - 1900; in main()25 tm_ptr.tm_mon = 7 - 1; in main()26 tm_ptr.tm_mday = 4; in main()27 tm_ptr.tm_hour = 0; in main()28 tm_ptr.tm_min = 0; in main()29 tm_ptr.tm_sec = 1; in main()30 tm_ptr.tm_isdst = -1; in main()32 tps = mktime(&tm_ptr); in main()
19 struct tm *tm_ptr; in main() local25 tm_ptr = localtime(&the_time); in main()26 result = strftime(buf, sizeof(buf), "%A %d %B, %I:%S %p", tm_ptr); in main()
3563 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()3564 if (tm_ptr == NULL) in PortableLocaltime()3566 *out = *tm_ptr; in PortableLocaltime()
3562 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()3563 if (tm_ptr == NULL) in PortableLocaltime()3565 *out = *tm_ptr; in PortableLocaltime()
3626 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()3627 if (tm_ptr == NULL) in PortableLocaltime()3629 *out = *tm_ptr; in PortableLocaltime()
3670 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()3671 if (tm_ptr == nullptr) return false; in PortableLocaltime()3672 *out = *tm_ptr; in PortableLocaltime()
5014 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()5015 if (tm_ptr == NULL) in PortableLocaltime()5017 *out = *tm_ptr; in PortableLocaltime()