-24 :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.35 PHP=5.5.9-1ubuntu4.29+esm15

adodb: 2024-12-24 19:27:24
php : 2024-12-24 18:27:24
error for %Y %m %x %X, strftime=2024 12 12/24/24 18:27:24, adodb=2024 12 12/24/24 19:27:24
error for %H %M S, strftime=18 27 S, adodb=19 27 S

Testing gregorian <=> julian conversion

-12219386400 -12219300000 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

8 00:05:12 am AM 28 Mon June 12 0 12 00 05 28 Monday 0 06 Jun 6 +0300 RFC2822 Mon, 28 Jun 1982 00:05:12 +0300 12 30 394059912 1 82 1982 178 10800 2003 Error date(): 394059912
 
  "date EEST 1982-06-28 00:05:12 am AM 28 Mon June 12 0 12 00 05 28 Monday 0 06 Jun 6 +0300 RFC2822 Mon, 28 Jun 1982 00:05:12 +0300 12 30 394059912 1 82 1982 178 10800 2003" (date len=169)
  "date EEST 1982-06-27 23:05:12 pm PM 27 Sun June 11 23 11 23 05 27 Sunday 0 06 Jun 6 +0200 RFC2822 Sun, 27 Jun 1982 23:05:12 +0200 12 30 394059912 0 82 1982 177 7200 2003" (adodb_date len=169)

Error getdate() 394059912
Array ( [seconds] => 12 [minutes] => 5 [hours] => 0 [mday] => 28 [wday] => 1 [mon] => 6 [year] => 1982 [yday] => 178 [weekday] => Monday [month] => June [0] => 394059912 )
Array ( [seconds] => 12 [minutes] => 5 [hours] => 23 [mday] => 27 [wday] => 0 [mon] => 6 [year] => 1982 [yday] => 177 [weekday] => Sunday [month] => June [0] => 394059912 )

5:35:08 am AM 22 Wed July 5 5 05 05 35 22 Wednesday 0 07 Jul 7 +0300 RFC2822 Wed, 22 Jul 1981 05:35:08 +0300 08 31 364617308 3 81 1981 202 10800 2003 Error date(): 364617308

 
  "date EEST 1981-07-22 05:35:08 am AM 22 Wed July 5 5 05 05 35 22 Wednesday 0 07 Jul 7 +0300 RFC2822 Wed, 22 Jul 1981 05:35:08 +0300 08 31 364617308 3 81 1981 202 10800 2003" (date len=171)
  "date EEST 1981-07-22 04:35:08 am AM 22 Wed July 4 4 04 04 35 22 Wednesday 0 07 Jul 7 +0200 RFC2822 Wed, 22 Jul 1981 04:35:08 +0200 08 31 364617308 3 81 1981 202 7200 2003" (adodb_date len=170)

Error getdate() 364617308
Array ( [seconds] => 8 [minutes] => 35 [hours] => 5 [mday] => 22 [wday] => 3 [mon] => 7 [year] => 1981 [yday] => 202 [weekday] => Wednesday [month] => July [0] => 364617308 )
Array ( [seconds] => 8 [minutes] => 35 [hours] => 4 [mday] => 22 [wday] => 3 [mon] => 7 [year] => 1981 [yday] => 202 [weekday] => Wednesday [month] => July [0] => 364617308 )

20:46:18 pm PM 07 Thu May 8 20 08 20 46 7 Thursday 0 05 May 5 +0300 RFC2822 Thu, 07 May 1981 20:46:18 +0300 18 31 358105578 4 81 1981 126 10800 2003 Error date(): 358105578

 
  "date EEST 1981-05-07 20:46:18 pm PM 07 Thu May 8 20 08 20 46 7 Thursday 0 05 May 5 +0300 RFC2822 Thu, 07 May 1981 20:46:18 +0300 18 31 358105578 4 81 1981 126 10800 2003" (date len=169)
  "date EEST 1981-05-07 19:46:18 pm PM 07 Thu May 7 19 07 19 46 7 Thursday 0 05 May 5 +0200 RFC2822 Thu, 07 May 1981 19:46:18 +0200 18 31 358105578 4 81 1981 126 7200 2003" (adodb_date len=168)

Error getdate() 358105578
Array ( [seconds] => 18 [minutes] => 46 [hours] => 20 [mday] => 7 [wday] => 4 [mon] => 5 [year] => 1981 [yday] => 126 [weekday] => Thursday [month] => May [0] => 358105578 )
Array ( [seconds] => 18 [minutes] => 46 [hours] => 19 [mday] => 7 [wday] => 4 [mon] => 5 [year] => 1981 [yday] => 126 [weekday] => Thursday [month] => May [0] => 358105578 )

7:08:29 pm PM 22 Wed July 5 17 05 17 08 22 Wednesday 0 07 Jul 7 +0300 RFC2822 Wed, 22 Jul 1981 17:08:29 +0300 29 31 364658909 3 81 1981 202 10800 2003 Error date(): 364658909

 
  "date EEST 1981-07-22 17:08:29 pm PM 22 Wed July 5 17 05 17 08 22 Wednesday 0 07 Jul 7 +0300 RFC2822 Wed, 22 Jul 1981 17:08:29 +0300 29 31 364658909 3 81 1981 202 10800 2003" (date len=172)
  "date EEST 1981-07-22 16:08:29 pm PM 22 Wed July 4 16 04 16 08 22 Wednesday 0 07 Jul 7 +0200 RFC2822 Wed, 22 Jul 1981 16:08:29 +0200 29 31 364658909 3 81 1981 202 7200 2003" (adodb_date len=171)

Error getdate() 364658909
Array ( [seconds] => 29 [minutes] => 8 [hours] => 17 [mday] => 22 [wday] => 3 [mon] => 7 [year] => 1981 [yday] => 202 [weekday] => Wednesday [month] => July [0] => 364658909 )
Array ( [seconds] => 29 [minutes] => 8 [hours] => 16 [mday] => 22 [wday] => 3 [mon] => 7 [year] => 1981 [yday] => 202 [weekday] => Wednesday [month] => July [0] => 364658909 )

Testing random dates between 100 and 4000

Testing 1964 to 1976, or 378432000 seconds, offset=68282: 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 Tested 5543 dates

Failed :-(

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