/aosp_15_r20/external/python/cpython2/Lib/test/ |
D | test_time.py | 29 == time.asctime(time.localtime(self.t))) 189 time.asctime(time.gmtime(self.t)) 190 self.assertRaises(TypeError, time.asctime, 0) 191 self.assertRaises(TypeError, time.asctime, ()) 194 asc = time.asctime((TIME_MAXYEAR, 6, 1) + (0,) * 6) 196 self.assertRaises(OverflowError, time.asctime, 198 self.assertRaises(TypeError, time.asctime, 0) 199 self.assertRaises(TypeError, time.asctime, ()) 200 self.assertRaises(TypeError, time.asctime, (0,) * 10)
|
/aosp_15_r20/external/fonttools/Lib/fontTools/misc/ |
H A D | timeTools.py | 30 def asctime(t=None): function 35 >>> asctime(time.gmtime(0)) 39 Locale information is not used by asctime(). 41 This is meant to normalise the output of the built-in time.asctime() across 60 return asctime(time.gmtime(max(0, value + epoch_diff)))
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
D | test_logging.py | 658 f = logging.Formatter('%(asctime)s: %(levelname)s: %(message)s') 1718 "format": "%(asctime)s [%(process)d] [%(levelname)s] %(message)s", 2879 "format": "%(asctime)s (%(name)s) %(levelname)s: %(message)s", 3420 …config['formatters']['mySimpleFormatter']['format'] = "${asctime} (${name}) ${levelname}: ${messag… 3913 f = logging.Formatter('%(asctime)s') 3915 f = logging.Formatter('%(asctime)-15s') 3917 f = logging.Formatter('%(asctime)#15s') 3929 f = logging.Formatter('{asctime}', style='{') 3931 f = logging.Formatter('{asctime!s:15}', style='{') 3933 f = logging.Formatter('{asctime:15}', style='{') [all …]
|
D | test_time.py | 153 time.asctime(time.localtime(self.t))) 299 time.asctime(time.gmtime(self.t)) 303 asc = time.asctime((bigyear, 6, 1) + (0,) * 6) 305 self.assertRaises(OverflowError, time.asctime, 307 self.assertRaises(OverflowError, time.asctime, 309 self.assertRaises(TypeError, time.asctime, 0) 310 self.assertRaises(TypeError, time.asctime, ()) 311 self.assertRaises(TypeError, time.asctime, (0,) * 10) 314 self._bounds_checking(time.asctime) 610 return time.asctime((y,) + (0,) * 8).split()[-1]
|
/aosp_15_r20/external/llvm-libc/src/time/ |
H A D | asctime.cpp | 1 //===-- Implementation of asctime function --------------------------------===// 9 #include "src/time/asctime.h" 18 LLVM_LIBC_FUNCTION(char *, asctime, (const struct tm *timeptr)) { 20 return time_utils::asctime(timeptr, buffer, TimeConstants::ASCTIME_MAX_BYTES);
|
/aosp_15_r20/external/llvm-libc/test/src/time/ |
H A D | asctime_test.cpp | 1 //===-- Unittests for asctime ---------------------------------------------===// 10 #include "src/time/asctime.h" 19 return LIBC_NAMESPACE::asctime(tm_data); in call_asctime() 24 result = LIBC_NAMESPACE::asctime(nullptr); in TEST() 202 // This test would cause buffer overflow and thus asctime returns nullptr. in TEST()
|
/aosp_15_r20/external/python/cpython2/Modules/ |
D | timemodule.c | 234 " accepted by asctime(), mktime() and strftime(). May be considered as a\n" 392 * asctime(). Return 1 if all values are valid, otherwise set an exception 398 /* Checks added to make sure strftime() and asctime() does not crash Python by in checktm() 637 * http://pubs.opengroup.org/onlinepubs/009695399/functions/asctime.html */ in _asctime() 668 if (!PyArg_UnpackTuple(args, "asctime", 0, 1, &tup)) in time_asctime() 681 "asctime([tuple]) -> string\n\ 722 This is equivalent to asctime(localtime(seconds)). When the time tuple is\n\ 885 {"asctime", time_asctime, METH_VARARGS, asctime_doc}, 939 asctime() -- convert time tuple to string\n\
|
/aosp_15_r20/external/pigweed/pw_console/py/pw_console/ |
H A D | log_store.py | 132 timestamp_prefix = colors.black_on_white('%(asctime)s') + ' ' 189 and 'asctime' in format_without_message 193 asctime=record.asctime, levelname=record.levelname
|
/aosp_15_r20/external/fonttools/Tests/misc/ |
H A D | timeTools_test.py | 2 asctime, 15 assert isinstance(asctime(), str) 16 assert asctime(time.gmtime(0)) == "Thu Jan 1 00:00:00 1970"
|
/aosp_15_r20/external/python/cpython2/Doc/howto/ |
D | logging-cookbook.rst | 38 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') 175 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') 215 format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', 591 … format='%(asctime)-15s %(name)-5s %(levelname)-8s IP: %(ip)-15s User: %(user)-8s %(message)s') 717 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' 929 'format': '%(asctime)s %(levelname)s %(name)s %(message)s' 972 'format': '%(asctime)s %(levelname)s %(name)s %(message)s' 1149 f = OneLineExceptionFormatter('%(asctime)s|%(levelname)s|%(message)s|', 1399 'format': '%(asctime)s %(message)s', 1402 'format': '%(asctime)s %(message)s', [all …]
|
D | logging.rst | 278 To display the date and time of an event, you would place '%(asctime)s' in 282 logging.basicConfig(format='%(asctime)s %(message)s') 294 logging.basicConfig(format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p') 537 '%(asctime)s - %(levelname)s - %(message)s' 577 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') 650 format=%(asctime)s - %(name)s - %(levelname)s - %(message)s 711 format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/asctime/ |
H A D | 1-1.c | 8 The asctime() function shall convert the broken-down time in the structure pointed to by timeptr in… 50 real = asctime(&time_ptr); in main() 62 perror("asctime did not return the correct value\n"); in main()
|
/aosp_15_r20/external/python/cpython3/Doc/howto/ |
D | logging-cookbook.rst | 39 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') 180 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') 220 format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', 968 … format='%(asctime)-15s %(name)-5s %(levelname)-8s IP: %(ip)-15s User: %(user)-8s %(message)s') 1311 f = logging.Formatter('%(asctime)s %(processName)-10s %(name)s %(levelname)-8s %(message)s') 1433 … 'format': '%(asctime)s %(name)-15s %(levelname)-8s %(processName)-10s %(message)s' 1624 >>> bf = logging.Formatter('{asctime} {name} {levelname:8s} {message}', 1633 >>> df = logging.Formatter('$asctime $name ${levelname} $message', 1932 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' 2014 f = logging.Formatter('%(asctime)s %(message)s') [all …]
|
/aosp_15_r20/bionic/libc/tzcode/ |
H A D | asctime.c | 1 /* asctime and asctime_r a la POSIX and ISO C, except pad years before 1000. */ 11 ** whereas the output of asctime is supposed to be constant. 114 asctime(register const struct tm *timeptr) in asctime() function
|
/aosp_15_r20/external/autotest/client/common_lib/ |
H A D | logging_config.py | 62 FILE_FORMAT = ('%(asctime)s.%(msecs)03d %(levelname)-5.5s|%(module)18.18s:' 65 '%(asctime)s.%(msecs)03d %(levelname)-5.5s|%(module)18.18s:' 71 CONSOLE_FORMAT = '%(asctime)s %(levelname)-5.5s| %(message)s'
|
/aosp_15_r20/external/python/cpython3/Modules/ |
D | timemodule.c | 413 " accepted by asctime(), mktime() and strftime(). May be considered as a\n" 643 * asctime(). Return 1 if all values are valid, otherwise set an exception 649 /* Checks added to make sure strftime() and asctime() does not crash Python by 943 * http://pubs.opengroup.org/onlinepubs/009695399/functions/asctime.html */ 966 if (!PyArg_UnpackTuple(args, "asctime", 0, 1, &tup)) 976 "iiiiiiiii;asctime(): illegal time tuple argument") || 985 "asctime([tuple]) -> string\n\ 1007 This is equivalent to asctime(localtime(seconds)). When the time tuple is\n\ 1858 {"asctime", time_asctime, METH_VARARGS, asctime_doc},
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/logging/ |
D | __init__.py | 424 asctime_format = '%(asctime)s' 425 asctime_search = '%(asctime)' 456 asctime_format = '{asctime}' 457 asctime_search = '{asctime' 490 asctime_format = '${asctime}' 491 asctime_search = '${asctime}' 499 return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0 562 %(asctime)s Textual time when the LogRecord was created 689 record.asctime = self.formatTime(record, self.datefmt) 1605 if (key in ["message", "asctime"]) or (key in rv.__dict__):
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/logging/ |
D | __init__.py | 424 asctime_format = '%(asctime)s' 425 asctime_search = '%(asctime)' 456 asctime_format = '{asctime}' 457 asctime_search = '{asctime' 490 asctime_format = '${asctime}' 491 asctime_search = '${asctime}' 499 return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0 562 %(asctime)s Textual time when the LogRecord was created 689 record.asctime = self.formatTime(record, self.datefmt) 1605 if (key in ["message", "asctime"]) or (key in rv.__dict__):
|
/aosp_15_r20/external/python/cpython3/Lib/logging/ |
D | __init__.py | 424 asctime_format = '%(asctime)s' 425 asctime_search = '%(asctime)' 456 asctime_format = '{asctime}' 457 asctime_search = '{asctime' 490 asctime_format = '${asctime}' 491 asctime_search = '${asctime}' 499 return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0 562 %(asctime)s Textual time when the LogRecord was created 689 record.asctime = self.formatTime(record, self.datefmt) 1605 if (key in ["message", "asctime"]) or (key in rv.__dict__):
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/logging/ |
D | __init__.py | 424 asctime_format = '%(asctime)s' 425 asctime_search = '%(asctime)' 456 asctime_format = '{asctime}' 457 asctime_search = '{asctime' 490 asctime_format = '${asctime}' 491 asctime_search = '${asctime}' 499 return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0 562 %(asctime)s Textual time when the LogRecord was created 689 record.asctime = self.formatTime(record, self.datefmt) 1605 if (key in ["message", "asctime"]) or (key in rv.__dict__):
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/logging/ |
D | __init__.py | 424 asctime_format = '%(asctime)s' 425 asctime_search = '%(asctime)' 456 asctime_format = '{asctime}' 457 asctime_search = '{asctime' 490 asctime_format = '${asctime}' 491 asctime_search = '${asctime}' 499 return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0 562 %(asctime)s Textual time when the LogRecord was created 689 record.asctime = self.formatTime(record, self.datefmt) 1605 if (key in ["message", "asctime"]) or (key in rv.__dict__):
|
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/logging/ |
H A D | __init__.py | 424 asctime_format = '%(asctime)s' 425 asctime_search = '%(asctime)' 456 asctime_format = '{asctime}' 457 asctime_search = '{asctime' 490 asctime_format = '${asctime}' 491 asctime_search = '${asctime}' 499 return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0 562 %(asctime)s Textual time when the LogRecord was created 689 record.asctime = self.formatTime(record, self.datefmt) 1605 if (key in ["message", "asctime"]) or (key in rv.__dict__):
|
/aosp_15_r20/external/pigweed/pw_console/py/pw_console/widgets/ |
H A D | table.py | 180 # asctime or levelname if they are not included in the formatter 182 if name == 'time' and hasattr(log.record, 'asctime'): 183 time_text = log.record.asctime
|
/aosp_15_r20/external/python/cpython2/Demo/pdist/ |
D | cvslib.py | 337 return time.asctime(time.gmtime(t)) 342 at = time.asctime(t) 350 print time.asctime(gu)
|
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/ |
H A D | 8-1-buildonly.c | 9 char *asctime(const struct tm *); 20 dummyvar = asctime; in dummyfcn()
|