Home
last modified time | relevance | path

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

/PHP-8.1/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 in %s on line %d
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 in %s on line %d
[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 in %s on line %d
65 Deprecated: Function strptime() is deprecated in %s on line %d
[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 in %s on line %d
/PHP-8.1/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.m4383 dnl Check for strptime()
385 AC_CACHE_CHECK(whether strptime() declaration fails, ac_cv_strptime_decl_fails,[
390 #error no strptime() on this platform
392 /* use invalid strptime() declaration to see if it fails to compile */
393 int strptime(const char *s, const char *format, struct tm *tm);
401 AC_DEFINE([HAVE_STRPTIME_DECL_FAILS], 1, [whether strptime() declaration fails])
H A Dbasic_functions.stub.php535 function strptime(string $timestamp, string $format): array|false {} function
H A Dbasic_functions_arginfo.h2392 ZEND_FUNCTION(strptime);
3023 ZEND_DEP_FE(strptime, arginfo_strptime)
/PHP-8.1/
H A DUPGRADING459 . The strptime() function has been deprecated. Use date_parse_from_format()
H A Dconfigure.ac609 strptime \

Completed in 37 milliseconds