Home
last modified time | relevance | path

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

/PHP-8.0/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 --
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");
8 if (PHP_OS == 'Darwin') die("skip - strptime() behaves differently on Darwin");
16 echo "*** Testing strptime() : basic functionality ***\n";
22 var_dump(strptime($str, '%H:%M:%S %p %B %d %Y'));
25 var_dump(strptime($str, '%H:%M:%S %m/%d/%y'));
28 var_dump(strptime($str, '%A %B %e %R'));
33 *** Testing strptime() : basic functionality ***
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 ***
H A Dbug38524.phpt2 Bug #38524 (strptime() does not initialize the internal date storage structure)
4 <?php if (!function_exists('strptime')) echo "SKIP"; ?>
7 var_dump(strptime('2006-08-20', '%Y-%m-%d'));
/PHP-8.0/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.m4362 dnl Check for strptime()
364 AC_CACHE_CHECK(whether strptime() declaration fails, ac_cv_strptime_decl_fails,[
369 #error no strptime() on this platform
371 /* use invalid strptime() declaration to see if it fails to compile */
372 int strptime(const char *s, const char *format, struct tm *tm);
380 AC_DEFINE([HAVE_STRPTIME_DECL_FAILS], 1, [whether strptime() declaration fails])
H A Dbasic_functions.stub.php389 function strptime(string $timestamp, string $format): array|false {} function
H A Dbasic_functions_arginfo.h2382 ZEND_FUNCTION(strptime);
3010 ZEND_FE(strptime, arginfo_strptime)
/PHP-8.0/
H A Dconfigure.ac600 strptime \

Completed in 29 milliseconds