/dports/lang/ruby26/ruby-2.6.9/test/date/ |
H A D | test_date_strptime.rb | 99 h = Date._strptime('2001-02-03') 183 h = Date._strptime(*x) 231 h = Date._strptime(*x) 340 d2 = Date.strptime(s, fmt) 361 d2 = DateTime.strptime(s, fmt) 368 d = DateTime.strptime('-1', '%s') 389 d = DateTime.strptime('13', '%d') 424 d = DateTime.strptime('11', '%V') 427 d = DateTime.strptime('6', '%u') 463 Date.strptime('') [all …]
|
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/library/date/ |
H A D | strptime_spec.rb | 7 Date.strptime.should == Date.civil(-4712, 1, 1) 11 Date.strptime("2000-04-06").should == Date.civil(2000, 4, 6) 20 Date.strptime("Thursday", "%A").should == expected_date 28 Date.strptime("Thu", "%a").should == expected_date 38 Date.strptime("Apr", "%b").should == Date.civil(d.year, 4, 1) 39 Date.strptime("Apr", "%h").should == Date.civil(d.year, 4, 1) 62 Date.strptime("68", "%g").should == Date.civil(2068, 1, 2) 63 Date.strptime("69", "%g").should == Date.civil(1968, 12, 30) 77 Date.strptime("04", "%m").should == Date.civil(d.year, 4, 1) 95 Date.strptime("1", "%V").should == d [all …]
|
/dports/finance/odoo/odoo-19d77c2a03335eb95a686bd69a1b56b38e87d609/odoo/addons/hr_contract/tests/ |
H A D | test_contract.py | 28 start = datetime.strptime('2015-11-01', '%Y-%m-%d').date() 29 end = datetime.strptime('2015-11-30', '%Y-%m-%d').date() 39 start = datetime.strptime('2015-11-01', '%Y-%m-%d').date() 40 end = datetime.strptime('2015-11-30', '%Y-%m-%d').date() 50 start = datetime.strptime('2015-11-15', '%Y-%m-%d').date() 51 end = datetime.strptime('2015-12-30', '%Y-%m-%d').date() 55 start = datetime.strptime('2015-11-01', '%Y-%m-%d').date() 56 end = datetime.strptime('2015-11-30', '%Y-%m-%d').date() 60 start = datetime.strptime('2015-11-15', '%Y-%m-%d').date() 61 end = datetime.strptime('2015-12-30', '%Y-%m-%d').date() [all …]
|
/dports/lang/php74/php-7.4.27/ext/standard/tests/time/ |
H A D | strptime_error.phpt | 5 if (!function_exists('strptime')) { 6 echo "SKIP strptime function not available in build"; 20 echo "*** Testing strptime() : error conditions ***\n"; 23 var_dump( strptime() ); 29 var_dump( strptime($date) ); 33 var_dump( strptime($date, $format, $extra_arg) ); 35 echo "\n-- Testing strptime() function on failure --\n"; 36 var_dump( strptime('foo', $format) ); 41 *** Testing strptime() : error conditions *** 43 -- Testing strptime() function with Zero arguments -- [all …]
|
H A D | strptime_basic.phpt | 2 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"); 12 /* Prototype : array strptime ( string $date , string $format ) 20 echo "*** Testing strptime() : basic functionality ***\n"; 26 var_dump(strptime($str, '%H:%M:%S %p %B %d %Y')); 29 var_dump(strptime($str, '%H:%M:%S %m/%d/%y')); 32 var_dump(strptime($str, '%A %B %e %R')); 38 *** Testing strptime() : basic functionality ***
|
/dports/lang/php73/php-7.3.33/ext/standard/tests/time/ |
H A D | strptime_error.phpt | 5 if (!function_exists('strptime')) { 6 echo "SKIP strptime function not available in build"; 20 echo "*** Testing strptime() : error conditions ***\n"; 23 var_dump( strptime() ); 29 var_dump( strptime($date) ); 33 var_dump( strptime($date, $format, $extra_arg) ); 35 echo "\n-- Testing strptime() function on failure --\n"; 36 var_dump( strptime('foo', $format) ); 41 *** Testing strptime() : error conditions *** 43 -- Testing strptime() function with Zero arguments -- [all …]
|
H A D | strptime_basic.phpt | 2 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"); 12 /* Prototype : array strptime ( string $date , string $format ) 20 echo "*** Testing strptime() : basic functionality ***\n"; 26 var_dump(strptime($str, '%H:%M:%S %p %B %d %Y')); 29 var_dump(strptime($str, '%H:%M:%S %m/%d/%y')); 32 var_dump(strptime($str, '%A %B %e %R')); 38 *** Testing strptime() : basic functionality ***
|
/dports/www/mod_php73/php-7.3.33/ext/standard/tests/time/ |
H A D | strptime_error.phpt | 5 if (!function_exists('strptime')) { 6 echo "SKIP strptime function not available in build"; 20 echo "*** Testing strptime() : error conditions ***\n"; 23 var_dump( strptime() ); 29 var_dump( strptime($date) ); 33 var_dump( strptime($date, $format, $extra_arg) ); 35 echo "\n-- Testing strptime() function on failure --\n"; 36 var_dump( strptime('foo', $format) ); 41 *** Testing strptime() : error conditions *** 43 -- Testing strptime() function with Zero arguments -- [all …]
|
H A D | strptime_basic.phpt | 2 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"); 12 /* Prototype : array strptime ( string $date , string $format ) 20 echo "*** Testing strptime() : basic functionality ***\n"; 26 var_dump(strptime($str, '%H:%M:%S %p %B %d %Y')); 29 var_dump(strptime($str, '%H:%M:%S %m/%d/%y')); 32 var_dump(strptime($str, '%A %B %e %R')); 38 *** Testing strptime() : basic functionality ***
|
/dports/www/mod_php74/php-7.4.27/ext/standard/tests/time/ |
H A D | strptime_error.phpt | 5 if (!function_exists('strptime')) { 6 echo "SKIP strptime function not available in build"; 20 echo "*** Testing strptime() : error conditions ***\n"; 23 var_dump( strptime() ); 29 var_dump( strptime($date) ); 33 var_dump( strptime($date, $format, $extra_arg) ); 35 echo "\n-- Testing strptime() function on failure --\n"; 36 var_dump( strptime('foo', $format) ); 41 *** Testing strptime() : error conditions *** 43 -- Testing strptime() function with Zero arguments -- [all …]
|
H A D | strptime_basic.phpt | 2 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"); 12 /* Prototype : array strptime ( string $date , string $format ) 20 echo "*** Testing strptime() : basic functionality ***\n"; 26 var_dump(strptime($str, '%H:%M:%S %p %B %d %Y')); 29 var_dump(strptime($str, '%H:%M:%S %m/%d/%y')); 32 var_dump(strptime($str, '%A %B %e %R')); 38 *** Testing strptime() : basic functionality ***
|
/dports/devel/p5-DateTime-Format-Builder/DateTime-Format-Builder-0.83/t/ |
H A D | on_fail.t | 16 { strptime => '%m/%d/%Y%n%I:%M%p'}, 17 { strptime => '%Y/%m/%d%n%I:%M%p'}, 19 { strptime => '%F%n%I:%M%p'}, 21 { strptime => '%m/%d/%Y%n%H:%M'}, 22 { strptime => '%Y/%m/%d%n%H:%M'}, 24 { strptime => '%F%n%H:%M'}, 26 { strptime => '%m/%d/%Y'}, 27 { strptime => '%Y/%m/%d'}, 28 { strptime => '%m-%d-%Y'}, 29 { strptime => '%F'}, [all …]
|
/dports/sysutils/fusefs-gitfs/gitfs-0.5.2/tests/utils/ |
H A D | test_strptime.py | 21 from gitfs.utils.strptime import TimeParser 22 from gitfs.utils import strptime 29 assert strptime("2014-08-21 01:02:03", "%Y-%m-%d %H:%M:%S") == date 31 strptime("2014-08-21 01:02:03", "%Y-%m-%d %H:%M:%S", to_datetime=True) 37 assert strptime("30 Aug 14 01:02:03", "%d %b %y %H:%M:%S") == date 39 strptime("30 Aug 14 01:02:03", "%d %b %y %H:%M:%S", to_datetime=True) 45 assert strptime("1 Jan 70 1:30pm", "%d %b %y %I:%M%p") == date 47 strptime("1 Jan 70 1:30pm", "%d %b %y %I:%M%p", to_datetime=True) 52 strptime("31 Nov 14 01:02:03", "%d %b %y %H:%M:%S")
|
/dports/www/mod_php81/php-8.1.1/ext/standard/tests/time/ |
H A D | strptime_basic.phpt | 2 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 D | strptime_error.phpt | 5 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 D | strptime_parts.phpt | 2 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 …]
|
/dports/lang/php81/php-8.1.1/ext/standard/tests/time/ |
H A D | strptime_basic.phpt | 2 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 D | strptime_error.phpt | 5 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 D | strptime_parts.phpt | 2 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 …]
|
/dports/math/gnuplot/gnuplot-5.4.1/demo/ |
H A D | timedat.dem | 72 print "\nRelative time input (strptime(), data files)" 74 print 'print strptime("%tH:%tM:%tS", "-1:01:12.50")', "\t", strptime("%tH:%tM:%tS", "-1:01:12.50") 75 print 'print strptime(" %tM:%tS", "-61:12.50")', "\t", strptime(" %tM:%tS", "-61:12.50") 76 print 'print strptime(" %tS", "-3672.50")', "\t", strptime(" %tS", "-3672.50") 85 print "\nTimezones time input (strptime(), data files)" 86 print 'print strptime("%d/%m/%y\t%H:%M", "18/02/19\t13:24")', "\t", strptime("%d/%m/%y\t%H:%M", "18… 87 print 'print strptime("%d/%m/%y\t%H:%M%z", "18/02/19\t12:24+00:00")', "\t", strptime("%d/%m/%y\t%H:… 88 print 'print strptime("%d/%m/%y\t%H:%M%z", "18/02/19\t13:24+01:00")', "\t", strptime("%d/%m/%y\t%H:… 89 print 'print strptime("%d/%m/%y\t%H:%M %Z", "18/02/19\t13:24 CET")', "\t", strptime("%d/%m/%y\t%H:%… 90 print 'print strptime("%d/%m/%y\t%H:%M %Z", "18/02/19\t14:24 CEST")', "\t", strptime("%d/%m/%y\t%H:…
|
/dports/math/gnuplot-lite/gnuplot-5.4.1/demo/ |
H A D | timedat.dem | 72 print "\nRelative time input (strptime(), data files)" 74 print 'print strptime("%tH:%tM:%tS", "-1:01:12.50")', "\t", strptime("%tH:%tM:%tS", "-1:01:12.50") 75 print 'print strptime(" %tM:%tS", "-61:12.50")', "\t", strptime(" %tM:%tS", "-61:12.50") 76 print 'print strptime(" %tS", "-3672.50")', "\t", strptime(" %tS", "-3672.50") 85 print "\nTimezones time input (strptime(), data files)" 86 print 'print strptime("%d/%m/%y\t%H:%M", "18/02/19\t13:24")', "\t", strptime("%d/%m/%y\t%H:%M", "18… 87 print 'print strptime("%d/%m/%y\t%H:%M%z", "18/02/19\t12:24+00:00")', "\t", strptime("%d/%m/%y\t%H:… 88 print 'print strptime("%d/%m/%y\t%H:%M%z", "18/02/19\t13:24+01:00")', "\t", strptime("%d/%m/%y\t%H:… 89 print 'print strptime("%d/%m/%y\t%H:%M %Z", "18/02/19\t13:24 CET")', "\t", strptime("%d/%m/%y\t%H:%… 90 print 'print strptime("%d/%m/%y\t%H:%M %Z", "18/02/19\t14:24 CEST")', "\t", strptime("%d/%m/%y\t%H:…
|
/dports/comms/xlog/xlog-2.0.22/ |
H A D | acinclude.m4 | 2 dnl This macro checks that the function strptime exists and that 7 dnl strptime.c replacement: 13 dnl In sources using strptime 16 dnl extern char *strptime(const char *__s, const char *__fmt, struct tm *__tp); 24 AC_CHECK_FUNCS(strptime) 25 AC_MSG_CHECKING(for strptime declaration in time.h) 26 AC_EGREP_HEADER(strptime, time.h, [ 27 AC_DEFINE([HAVE_STRPTIME_DECL],,[Define if the function strptime is declared in <time.h>])
|
/dports/lang/php80/php-8.0.15/ext/standard/tests/time/ |
H A D | strptime_error.phpt | 5 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 --
|
/dports/www/mod_php80/php-8.0.15/ext/standard/tests/time/ |
H A D | strptime_error.phpt | 5 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 --
|
/dports/devel/R-cran-hms/hms/tests/testthat/ |
H A D | test-coercion.R | 5 expect_hms_equal(as_hms(strptime("12:34:56", format = "%H:%M:%S", tz = "UTC")), 7 expect_hms_equal(as_hms(strptime("12:34:56", format = "%H:%M:%S", tz = "Europe/Zurich")), 9 expect_hms_equal(as_hms(strptime("12:34:56", format = "%H:%M:%S", tz = "PST8PDT")), 11 expect_hms_equal(as_hms(as.POSIXct(strptime("12:34:56", format = "%H:%M:%S", tz = "UTC"))), 13 …expect_hms_equal(as_hms(as.POSIXct(strptime("12:34:56", format = "%H:%M:%S", tz = "Europe/Zurich")… 15 expect_hms_equal(as_hms(as.POSIXct(strptime("12:34:56", format = "%H:%M:%S", tz = "PST8PDT"))), 33 strptime("1970-01-01 06:00:00", 36 strptime("1970-01-01 18:00:00",
|