-24 :
Warning: mktime() expects at most 6 parameters, 7 given in /opt/lampp/htdocs/tarki_survey/classes/adodb5/adodb-time.inc.php on line 732

Warning: gmmktime() expects at most 6 parameters, 7 given in /opt/lampp/htdocs/tarki_survey/classes/adodb5/adodb-time.inc.php on line 732
20-01-2038
-23 :20-02-2038
-22 :20-03-2038
-21 :20-04-2038
-20 :20-05-2038
-19 :20-06-2038
-18 :20-07-2038
-17 :20-08-2038
-16 :20-09-2038
-15 :20-10-2038
-14 :20-11-2038
-13 :20-12-2038
-12 :20-01-2039
-11 :20-02-2039
-10 :20-03-2039
-9 :20-04-2039
-8 :20-05-2039
-7 :20-06-2039
-6 :20-07-2039
-5 :20-08-2039
-4 :20-09-2039
-3 :20-10-2039
-2 :20-11-2039
-1 :20-12-2039
0 :20-01-2040
1 :20-02-2040
2 :20-03-2040
3 :20-04-2040
4 :20-05-2040
5 :20-06-2040
6 :20-07-2040
7 :20-08-2040
8 :20-09-2040
9 :20-10-2040
10 :20-11-2040
11 :20-12-2040
12 :20-01-2041
13 :20-02-2041
14 :20-03-2041
15 :20-04-2041
16 :20-05-2041
17 :20-06-2041
18 :20-07-2041
19 :20-08-2041
20 :20-09-2041
21 :20-10-2041
22 :20-11-2041
23 :20-12-2041
24 :20-01-2042

Testing adodb_date and adodb_mktime. version=0.33 PHP=7.4.33

adodb: 2024-12-22 09:55:44
php : 2024-12-22 08:55:44
error for %Y %m %x %X, strftime=2024 12 12/22/24 08:55:44, adodb=2024 12 12/22/24 09:55:44
error for %H %M S, strftime=08 55 S, adodb=09 55 S

Testing gregorian <=> julian conversion

-12219379200 -12219292800 15 Oct 1582, Fri=Fri
4 Oct 1582, Thu=Thu

Testing overflow

Testing 2-digit => 4-digit year conversion

Err 2-digit 1940
Err 2-digit 1950

Testing date formating

3:49:09 am AM 27 Sun April 3 3 03 03 49 27 Sunday 1 04 Apr 4 +0200 RFC2822 Sun, 27 Apr 1980 03:49:09 +0200 09 30 325648149 0 80 1980 117 7200 2003 Error date(): 325648149
 
  "date CEST 1980-04-27 03:49:09 am AM 27 Sun April 3 3 03 03 49 27 Sunday 1 04 Apr 4 +0200 RFC2822 Sun, 27 Apr 1980 03:49:09 +0200 09 30 325648149 0 80 1980 117 7200 2003" (date len=168)
  "date CEST 1980-04-27 02:49:09 am AM 27 Sun April 2 2 02 02 49 27 Sunday 1 04 Apr 4 +0100 RFC2822 Sun, 27 Apr 1980 02:49:09 +0100 09 30 325648149 0 80 1980 117 3600 2003" (adodb_date len=168)

Error getdate() 325648149
Array ( [seconds] => 9 [minutes] => 49 [hours] => 3 [mday] => 27 [wday] => 0 [mon] => 4 [year] => 1980 [yday] => 117 [weekday] => Sunday [month] => April [0] => 325648149 )
Array ( [seconds] => 9 [minutes] => 49 [hours] => 2 [mday] => 27 [wday] => 0 [mon] => 4 [year] => 1980 [yday] => 117 [weekday] => Sunday [month] => April [0] => 325648149 )

1:13:40 am AM 24 Thu April 11 11 11 11 13 24 Thursday 1 04 Apr 4 +0200 RFC2822 Thu, 24 Apr 1980 11:13:40 +0200 40 30 325415620 4 80 1980 114 7200 2003 Error date(): 325415620

 
  "date CEST 1980-04-24 11:13:40 am AM 24 Thu April 11 11 11 11 13 24 Thursday 1 04 Apr 4 +0200 RFC2822 Thu, 24 Apr 1980 11:13:40 +0200 40 30 325415620 4 80 1980 114 7200 2003" (date len=172)
  "date CEST 1980-04-24 10:13:40 am AM 24 Thu April 10 10 10 10 13 24 Thursday 1 04 Apr 4 +0100 RFC2822 Thu, 24 Apr 1980 10:13:40 +0100 40 30 325415620 4 80 1980 114 3600 2003" (adodb_date len=172)

Error getdate() 325415620
Array ( [seconds] => 40 [minutes] => 13 [hours] => 11 [mday] => 24 [wday] => 4 [mon] => 4 [year] => 1980 [yday] => 114 [weekday] => Thursday [month] => April [0] => 325415620 )
Array ( [seconds] => 40 [minutes] => 13 [hours] => 10 [mday] => 24 [wday] => 4 [mon] => 4 [year] => 1980 [yday] => 114 [weekday] => Thursday [month] => April [0] => 325415620 )

9:29:29 am AM 17 Thu April 9 9 09 09 29 17 Thursday 1 04 Apr 4 +0200 RFC2822 Thu, 17 Apr 1980 09:29:29 +0200 29 30 324804569 4 80 1980 107 7200 2003 Error date(): 324804569

 
  "date CEST 1980-04-17 09:29:29 am AM 17 Thu April 9 9 09 09 29 17 Thursday 1 04 Apr 4 +0200 RFC2822 Thu, 17 Apr 1980 09:29:29 +0200 29 30 324804569 4 80 1980 107 7200 2003" (date len=170)
  "date CEST 1980-04-17 08:29:29 am AM 17 Thu April 8 8 08 08 29 17 Thursday 1 04 Apr 4 +0100 RFC2822 Thu, 17 Apr 1980 08:29:29 +0100 29 30 324804569 4 80 1980 107 3600 2003" (adodb_date len=170)

Error getdate() 324804569
Array ( [seconds] => 29 [minutes] => 29 [hours] => 9 [mday] => 17 [wday] => 4 [mon] => 4 [year] => 1980 [yday] => 107 [weekday] => Thursday [month] => April [0] => 324804569 )
Array ( [seconds] => 29 [minutes] => 29 [hours] => 8 [mday] => 17 [wday] => 4 [mon] => 4 [year] => 1980 [yday] => 107 [weekday] => Thursday [month] => April [0] => 324804569 )

2:14:44 am AM 23 Thu April 2 2 02 02 14 23 Thursday 0 04 Apr 4 +0200 RFC2822 Thu, 23 Apr 1981 02:14:44 +0200 44 30 356832884 4 81 1981 112 7200 2003 Error date(): 356832884

 
  "date CEST 1981-04-23 02:14:44 am AM 23 Thu April 2 2 02 02 14 23 Thursday 0 04 Apr 4 +0200 RFC2822 Thu, 23 Apr 1981 02:14:44 +0200 44 30 356832884 4 81 1981 112 7200 2003" (date len=170)
  "date CEST 1981-04-23 01:14:44 am AM 23 Thu April 1 1 01 01 14 23 Thursday 0 04 Apr 4 +0100 RFC2822 Thu, 23 Apr 1981 01:14:44 +0100 44 30 356832884 4 81 1981 112 3600 2003" (adodb_date len=170)

Error getdate() 356832884
Array ( [seconds] => 44 [minutes] => 14 [hours] => 2 [mday] => 23 [wday] => 4 [mon] => 4 [year] => 1981 [yday] => 112 [weekday] => Thursday [month] => April [0] => 356832884 )
Array ( [seconds] => 44 [minutes] => 14 [hours] => 1 [mday] => 23 [wday] => 4 [mon] => 4 [year] => 1981 [yday] => 112 [weekday] => Thursday [month] => April [0] => 356832884 )

5:41:58 pm PM 11 Mon August 3 15 03 15 41 11 Monday 1 08 Aug 8 +0200 RFC2822 Mon, 11 Aug 1980 15:41:58 +0200 58 31 334849318 1 80 1980 223 7200 2003 Error date(): 334849318

 
  "date CEST 1980-08-11 15:41:58 pm PM 11 Mon August 3 15 03 15 41 11 Monday 1 08 Aug 8 +0200 RFC2822 Mon, 11 Aug 1980 15:41:58 +0200 58 31 334849318 1 80 1980 223 7200 2003" (date len=170)
  "date CEST 1980-08-11 14:41:58 pm PM 11 Mon August 2 14 02 14 41 11 Monday 1 08 Aug 8 +0100 RFC2822 Mon, 11 Aug 1980 14:41:58 +0100 58 31 334849318 1 80 1980 223 3600 2003" (adodb_date len=170)

Error getdate() 334849318
Array ( [seconds] => 58 [minutes] => 41 [hours] => 15 [mday] => 11 [wday] => 1 [mon] => 8 [year] => 1980 [yday] => 223 [weekday] => Monday [month] => August [0] => 334849318 )
Array ( [seconds] => 58 [minutes] => 41 [hours] => 14 [mday] => 11 [wday] => 1 [mon] => 8 [year] => 1980 [yday] => 223 [weekday] => Monday [month] => August [0] => 334849318 )

6 00:05:00 am AM 26 Wed August 12 0 12 00 05 26 Wednesday 0 08 Aug 8 +0200 RFC2822 Wed, 26 Aug 1981 00:05:00 +0200 00 31 367625100 3 81 1981 237 7200 2003 Error date(): 367625100

 
  "date CEST 1981-08-26 00:05:00 am AM 26 Wed August 12 0 12 00 05 26 Wednesday 0 08 Aug 8 +0200 RFC2822 Wed, 26 Aug 1981 00:05:00 +0200 00 31 367625100 3 81 1981 237 7200 2003" (date len=173)
  "date CEST 1981-08-25 23:05:00 pm PM 25 Tue August 11 23 11 23 05 25 Tuesday 0 08 Aug 8 +0100 RFC2822 Tue, 25 Aug 1981 23:05:00 +0100 00 31 367625100 2 81 1981 236 3600 2003" (adodb_date len=172)

Error getdate() 367625100
Array ( [seconds] => 0 [minutes] => 5 [hours] => 0 [mday] => 26 [wday] => 3 [mon] => 8 [year] => 1981 [yday] => 237 [weekday] => Wednesday [month] => August [0] => 367625100 )
Array ( [seconds] => 0 [minutes] => 5 [hours] => 23 [mday] => 25 [wday] => 2 [mon] => 8 [year] => 1981 [yday] => 236 [weekday] => Tuesday [month] => August [0] => 367625100 )

1:39:28 pm PM 30 Mon March 9 21 09 21 39 30 Monday 0 03 Mar 3 +0200 RFC2822 Mon, 30 Mar 1981 21:39:28 +0200 28 31 354829168 1 81 1981 88 7200 2003 Error date(): 354829168

 
  "date CEST 1981-03-30 21:39:28 pm PM 30 Mon March 9 21 09 21 39 30 Monday 0 03 Mar 3 +0200 RFC2822 Mon, 30 Mar 1981 21:39:28 +0200 28 31 354829168 1 81 1981 88 7200 2003" (date len=168)
  "date CEST 1981-03-30 20:39:28 pm PM 30 Mon March 8 20 08 20 39 30 Monday 0 03 Mar 3 +0100 RFC2822 Mon, 30 Mar 1981 20:39:28 +0100 28 31 354829168 1 81 1981 88 3600 2003" (adodb_date len=168)

Error getdate() 354829168
Array ( [seconds] => 28 [minutes] => 39 [hours] => 21 [mday] => 30 [wday] => 1 [mon] => 3 [year] => 1981 [yday] => 88 [weekday] => Monday [month] => March [0] => 354829168 )
Array ( [seconds] => 28 [minutes] => 39 [hours] => 20 [mday] => 30 [wday] => 1 [mon] => 3 [year] => 1981 [yday] => 88 [weekday] => Monday [month] => March [0] => 354829168 )

Testing random dates between 100 and 4000

Testing 1969 to 1981, or 378432000 seconds, offset=87726: 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 Tested 4314 dates

Failed :-(

Original: 2063-12-24
Converted: 24-Dec-2063