/external/scapy/scapy/contrib/ |
D | ppi_geotag.uts | 33 def local_to_utc(local_time): 37 return local_time 38 utc_time_clock = time.gmtime(time.mktime(local_time)) 40 if local_time.tm_isdst: 46 local_time = time.localtime() 47 utc_time = UTCTimeField("Test", None, epoch=local_time) 48 assert time.localtime(utc_time.epoch) == local_time 49 assert time.mktime(time.gmtime(utc_time.delta)) == time.mktime(local_time) 50 strft_time = time.strftime("%a, %d %b %Y %H:%M:%S +0000", local_to_utc(local_time)) 56 local_time = time.localtime() [all …]
|
/external/libchrome/base/ |
D | logging.cc | 798 struct tm local_time; in Init() local 799 localtime_r(&t, &local_time); in Init() 800 struct tm* tm_time = &local_time; in Init() 812 SYSTEMTIME local_time; in Init() 813 GetLocalTime(&local_time); in Init() 815 << std::setw(2) << local_time.wMonth in Init() 816 << std::setw(2) << local_time.wDay in Init() 818 << std::setw(2) << local_time.wHour in Init() 819 << std::setw(2) << local_time.wMinute in Init() 820 << std::setw(2) << local_time.wSecond in Init() [all …]
|
/external/ImageMagick/MagickCore/ |
D | string.c | 1178 local_time; in FormatMagickTime() local 1184 (void) ResetMagickMemory(&local_time,0,sizeof(local_time)); in FormatMagickTime() 1187 (void) localtime_r(&time,&local_time); in FormatMagickTime() 1195 (void) memcpy(&local_time,my_time,sizeof(local_time)); in FormatMagickTime() 1210 timezone=(time_t) ((local_time.tm_min-gm_time.tm_min)/60+ in FormatMagickTime() 1211 local_time.tm_hour-gm_time.tm_hour+24*((local_time.tm_year- in FormatMagickTime() 1212 gm_time.tm_year) != 0 ? (local_time.tm_year-gm_time.tm_year) : in FormatMagickTime() 1213 (local_time.tm_yday-gm_time.tm_yday))); in FormatMagickTime() 1215 "%04d-%02d-%02dT%02d:%02d:%02d%+03ld:00",local_time.tm_year+1900, in FormatMagickTime() 1216 local_time.tm_mon+1,local_time.tm_mday,local_time.tm_hour, in FormatMagickTime() [all …]
|
/external/libchrome/base/time/ |
D | pr_time_unittest.cc | 79 struct tm local_time = {0}; in TEST_F() local 82 localtime_s(&local_time, ¤t_time); in TEST_F() 83 asctime_s(time_buf, arraysize(time_buf), &local_time); in TEST_F() 85 localtime_r(¤t_time, &local_time); in TEST_F() 86 asctime_r(&local_time, time_buf); in TEST_F()
|
D | time_unittest.cc | 231 struct tm local_time = {0}; in TEST_F() local 234 localtime_s(&local_time, ¤t_time); in TEST_F() 235 asctime_s(time_buf, arraysize(time_buf), &local_time); in TEST_F() 237 localtime_r(¤t_time, &local_time); in TEST_F() 238 asctime_r(&local_time, time_buf); in TEST_F()
|
/external/ImageMagick/coders/ |
D | mat.c | 1406 struct tm local_time; in WriteMATImage() local 1434 (void) localtime_r(¤t_time,&local_time); in WriteMATImage() 1436 (void) memcpy(&local_time,localtime(¤t_time),sizeof(local_time)); in WriteMATImage() 1441 OsDesc,DayOfWTab[local_time.tm_wday],MonthsTab[local_time.tm_mon], in WriteMATImage() 1442 local_time.tm_mday,local_time.tm_hour,local_time.tm_min, in WriteMATImage() 1443 local_time.tm_sec,local_time.tm_year+1900); in WriteMATImage()
|
D | cin.c | 927 local_time; in WriteCINImage() local 987 (void) localtime_r(&seconds,&local_time); in WriteCINImage() 989 (void) memcpy(&local_time,localtime(&seconds),sizeof(local_time)); in WriteCINImage() 992 (void) strftime(timestamp,MagickPathExtent,"%Y:%m:%d:%H:%M:%S%Z",&local_time); in WriteCINImage() 1090 (void) strftime(timestamp,MagickPathExtent,"%Y:%m:%d:%H:%M:%S%Z",&local_time); in WriteCINImage()
|
D | pdf.c | 1271 local_time; in WritePDFImage() local 2827 (void) localtime_r(&seconds,&local_time); in WritePDFImage() 2829 (void) memcpy(&local_time,localtime(&seconds),sizeof(local_time)); in WritePDFImage() 2832 local_time.tm_year+1900,local_time.tm_mon+1,local_time.tm_mday, in WritePDFImage() 2833 local_time.tm_hour,local_time.tm_min,local_time.tm_sec); in WritePDFImage()
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 4231 struct tm local_time; in local() local 4240 if (_PyTime_localtime(t, &local_time) != 0) in local() 4242 return utc_to_seconds(local_time.tm_year + 1900, in local() 4243 local_time.tm_mon + 1, in local() 4244 local_time.tm_mday, in local() 4245 local_time.tm_hour, in local() 4246 local_time.tm_min, in local() 4247 local_time.tm_sec); in local() 5055 PyObject *local_time, *utc_time; in local_timezone_from_timestamp() local 5060 local_time = new_datetime(local_time_tm.tm_year + 1900, in local_timezone_from_timestamp() [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | firewire-cdev.h | 894 __u64 local_time; member
|