Searched refs:tm_ptr (Results 1 – 11 of 11) 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()
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()
3683 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()3684 if (tm_ptr == nullptr) return false; in PortableLocaltime()3685 *out = *tm_ptr; in PortableLocaltime()
3721 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()3722 if (tm_ptr == nullptr) return false; in PortableLocaltime()3723 *out = *tm_ptr; in PortableLocaltime()
4095 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()4096 if (tm_ptr == nullptr) return false; in PortableLocaltime()4097 *out = *tm_ptr; in PortableLocaltime()
3798 struct tm *tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()3799 if (tm_ptr == nullptr) return false; in PortableLocaltime()3800 *out = *tm_ptr; in PortableLocaltime()
5010 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()5011 if (tm_ptr == NULL) in PortableLocaltime()5013 *out = *tm_ptr; in PortableLocaltime()