-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=7.4.15

adodb: 2026-09-22 04:32:11
php : 2026-09-22 05:32:11
error for %Y %m %x %X, strftime=2026 09 09/22/26 05:32:11, adodb=2026 09 09/22/26 04:32:11
error for %H %M S, strftime=05 32 S, adodb=04 32 S

Testing gregorian <=> julian conversion

-12219382800 -12219296400 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

2:13:03 am AM 29 Mon June 2 2 02 02 13 29 Monday 0 06 Jun 6 +0200 RFC2822 Mon, 29 Jun 1981 02:13:03 +0200 03 30 362621583 1 81 1981 179 7200 2003 Error date(): 362621583
  "date CEST 1981-06-29 02:13:03 am AM 29 Mon June 2 2 02 02 13 29 Monday 0 06 Jun 6 +0200 RFC2822 Mon, 29 Jun 1981 02:13:03 +0200 03 30 362621583 1 81 1981 179 7200 2003" (date len=167)
  "date CEST 1981-06-29 01:13:03 am AM 29 Mon June 1 1 01 01 13 29 Monday 0 06 Jun 6 +0100 RFC2822 Mon, 29 Jun 1981 01:13:03 +0100 03 30 362621583 1 81 1981 179 3600 2003" (adodb_date len=167)

Error getdate() 362621583
Array ( [seconds] => 3 [minutes] => 13 [hours] => 2 [mday] => 29 [wday] => 1 [mon] => 6 [year] => 1981 [yday] => 179 [weekday] => Monday [month] => June [0] => 362621583 )
Array ( [seconds] => 3 [minutes] => 13 [hours] => 1 [mday] => 29 [wday] => 1 [mon] => 6 [year] => 1981 [yday] => 179 [weekday] => Monday [month] => June [0] => 362621583 )

8:13:28 pm PM 27 Tue April 6 18 06 18 13 27 Tuesday 0 04 Apr 4 +0200 RFC2822 Tue, 27 Apr 1982 18:13:28 +0200 28 30 388772008 2 82 1982 116 7200 2003 Error date(): 388772008

  "date CEST 1982-04-27 18:13:28 pm PM 27 Tue April 6 18 06 18 13 27 Tuesday 0 04 Apr 4 +0200 RFC2822 Tue, 27 Apr 1982 18:13:28 +0200 28 30 388772008 2 82 1982 116 7200 2003" (date len=170)
  "date CEST 1982-04-27 17:13:28 pm PM 27 Tue April 5 17 05 17 13 27 Tuesday 0 04 Apr 4 +0100 RFC2822 Tue, 27 Apr 1982 17:13:28 +0100 28 30 388772008 2 82 1982 116 3600 2003" (adodb_date len=170)

Error getdate() 388772008
Array ( [seconds] => 28 [minutes] => 13 [hours] => 18 [mday] => 27 [wday] => 2 [mon] => 4 [year] => 1982 [yday] => 116 [weekday] => Tuesday [month] => April [0] => 388772008 )
Array ( [seconds] => 28 [minutes] => 13 [hours] => 17 [mday] => 27 [wday] => 2 [mon] => 4 [year] => 1982 [yday] => 116 [weekday] => Tuesday [month] => April [0] => 388772008 )

9:02:30 am AM 29 Tue July 9 9 09 09 02 29 Tuesday 1 07 Jul 7 +0200 RFC2822 Tue, 29 Jul 1980 09:02:30 +0200 30 31 333702150 2 80 1980 210 7200 2003 Error date(): 333702150

  "date CEST 1980-07-29 09:02:30 am AM 29 Tue July 9 9 09 09 02 29 Tuesday 1 07 Jul 7 +0200 RFC2822 Tue, 29 Jul 1980 09:02:30 +0200 30 31 333702150 2 80 1980 210 7200 2003" (date len=168)
  "date CEST 1980-07-29 08:02:30 am AM 29 Tue July 8 8 08 08 02 29 Tuesday 1 07 Jul 7 +0100 RFC2822 Tue, 29 Jul 1980 08:02:30 +0100 30 31 333702150 2 80 1980 210 3600 2003" (adodb_date len=168)

Error getdate() 333702150
Array ( [seconds] => 30 [minutes] => 2 [hours] => 9 [mday] => 29 [wday] => 2 [mon] => 7 [year] => 1980 [yday] => 210 [weekday] => Tuesday [month] => July [0] => 333702150 )
Array ( [seconds] => 30 [minutes] => 2 [hours] => 8 [mday] => 29 [wday] => 2 [mon] => 7 [year] => 1980 [yday] => 210 [weekday] => Tuesday [month] => July [0] => 333702150 )

10:53:53 am AM 15 Sun June 10 10 10 10 53 15 Sunday 1 06 Jun 6 +0200 RFC2822 Sun, 15 Jun 1980 10:53:53 +0200 53 30 329907233 0 80 1980 166 7200 2003 Error date(): 329907233

  "date CEST 1980-06-15 10:53:53 am AM 15 Sun June 10 10 10 10 53 15 Sunday 1 06 Jun 6 +0200 RFC2822 Sun, 15 Jun 1980 10:53:53 +0200 53 30 329907233 0 80 1980 166 7200 2003" (date len=169)
  "date CEST 1980-06-15 09:53:53 am AM 15 Sun June 9 9 09 09 53 15 Sunday 1 06 Jun 6 +0100 RFC2822 Sun, 15 Jun 1980 09:53:53 +0100 53 30 329907233 0 80 1980 166 3600 2003" (adodb_date len=167)

Error getdate() 329907233
Array ( [seconds] => 53 [minutes] => 53 [hours] => 10 [mday] => 15 [wday] => 0 [mon] => 6 [year] => 1980 [yday] => 166 [weekday] => Sunday [month] => June [0] => 329907233 )
Array ( [seconds] => 53 [minutes] => 53 [hours] => 9 [mday] => 15 [wday] => 0 [mon] => 6 [year] => 1980 [yday] => 166 [weekday] => Sunday [month] => June [0] => 329907233 )

Testing random dates between 100 and 4000

Testing 1966 to 1978, or 378432000 seconds, offset=57803: 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 Tested 6547 dates

Failed :-(

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