Home
last modified time | relevance | path

Searched refs:strptime (Results 1 – 9 of 9) sorted by relevance

/php-src/ext/standard/tests/time/
H A Dstrptime_error.phpt5 if (!function_exists('strptime')) {
6 echo "SKIP strptime function not available in build";
14 echo "*** Testing strptime() : error conditions ***\n";
16 echo "\n-- Testing strptime() function on failure --\n";
18 var_dump( strptime('foo', $format) );
22 *** Testing strptime() : error conditions ***
24 -- Testing strptime() function on failure --
26 Deprecated: Function strptime() is deprecated since 8.2, use date_parse_from_format() (for locale-i…
H A Dstrptime_basic.phpt2 Test strptime() function : basic functionality
5 if (!function_exists('strptime')) {
6 die("skip - strptime() function not available in this build");
9 die("skip strptime() behaves differently on Darwin/BSD");
18 echo "*** Testing strptime() : basic functionality ***\n";
24 var_dump(strptime($str, '%H:%M:%S %p %B %d %Y'));
27 var_dump(strptime($str, '%H:%M:%S %m/%d/%y'));
30 var_dump(strptime($str, '%A %B %e %R'));
35 *** Testing strptime() : basic functionality ***
39 Deprecated: Function strptime() is deprecated since 8.2, use date_parse_from_format() (for locale-i…
[all …]
H A Dstrptime_parts.phpt2 Test strptime() function : basic functionality
5 if (!function_exists('strptime')) {
6 die("skip - strptime() function not available in this build");
16 echo "*** Testing strptime() : basic functionality ***\n";
22 $res = strptime($str, '%H:%M:%S %p %B %d %Y %Z');
31 $res = strptime($str, '%H:%M:%S %m/%d/%y');
40 $res = strptime($str, '%A %B %e %R');
51 *** Testing strptime() : basic functionality ***
55 Deprecated: Function strptime() is deprecated since 8.2, use date_parse_from_format() (for locale-i…
65 Deprecated: Function strptime() is deprecated since 8.2, use date_parse_from_format() (for locale-i…
[all …]
H A Dbug38524.phpt2 Bug #38524 (strptime() does not initialize the internal date storage structure)
5 if (!function_exists('strptime')) echo "SKIP";
7 die("skip strptime() behaves differently on FreeBSD");
12 var_dump(strptime('2006-08-20', '%Y-%m-%d'));
15 Deprecated: Function strptime() is deprecated since 8.2, use date_parse_from_format() (for locale-i…
/php-src/ext/standard/
H A Ddatetime.c67 char *strptime(const char *s, const char *format, struct tm *tm);
71 PHP_FUNCTION(strptime) in PHP_FUNCTION() argument
87 unparsed_part = strptime(ts, format, &parsed_time); in PHP_FUNCTION()
H A Dconfig.m4334 dnl Obsolete check for strptime() declaration. The strptime, where available,
336 dnl declared in time.h. PHP's strptime is also deprecated as of PHP 8.1.
338 AC_CHECK_DECL([strptime],
340 [Define to 1 if you have the declaration of 'strptime'.])],,
H A Dbasic_functions.stub.php2122 function strptime(string $timestamp, string $format): array|false {}
H A Dbasic_functions_arginfo.h2458 ZEND_FUNCTION(strptime);
/php-src/
H A Dconfigure.ac584 strptime

Completed in 31 milliseconds