-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.33 PHP=5.6.30-7+deb.sury.org~xenial+1

adodb: 2025-09-07 02:05:48
php : 2025-09-07 03:05:48
error for %Y %m %x %X, strftime=2025 09 09/07/25 03:05:48, adodb=2025 09 09/07/25 02:05:48
error for %H %M S, strftime=03 05 S, adodb=02 05 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

6:48:45 am AM 19 Sun September 6 6 06 06 48 19 Sunday 0 09 Sep 9 +0200 RFC2822 Sun, 19 Sep 1982 06:48:45 +0200 45 30 401258925 0 82 1982 261 7200 2003 Error date(): 401258925
 
  "date CEST 1982-09-19 06:48:45 am AM 19 Sun September 6 6 06 06 48 19 Sunday 0 09 Sep 9 +0200 RFC2822 Sun, 19 Sep 1982 06:48:45 +0200 45 30 401258925 0 82 1982 261 7200 2003" (date len=172)
  "date CEST 1982-09-19 05:48:45 am AM 19 Sun September 5 5 05 05 48 19 Sunday 0 09 Sep 9 +0100 RFC2822 Sun, 19 Sep 1982 05:48:45 +0100 45 30 401258925 0 82 1982 261 3600 2003" (adodb_date len=172)

Error getdate() 401258925
Array ( [seconds] => 45 [minutes] => 48 [hours] => 6 [mday] => 19 [wday] => 0 [mon] => 9 [year] => 1982 [yday] => 261 [weekday] => Sunday [month] => September [0] => 401258925 )
Array ( [seconds] => 45 [minutes] => 48 [hours] => 5 [mday] => 19 [wday] => 0 [mon] => 9 [year] => 1982 [yday] => 261 [weekday] => Sunday [month] => September [0] => 401258925 )

8:22:27 am AM 24 Sun August 8 8 08 08 22 24 Sunday 1 08 Aug 8 +0200 RFC2822 Sun, 24 Aug 1980 08:22:27 +0200 27 31 335946147 0 80 1980 236 7200 2003 Error date(): 335946147

 
  "date CEST 1980-08-24 08:22:27 am AM 24 Sun August 8 8 08 08 22 24 Sunday 1 08 Aug 8 +0200 RFC2822 Sun, 24 Aug 1980 08:22:27 +0200 27 31 335946147 0 80 1980 236 7200 2003" (date len=169)
  "date CEST 1980-08-24 07:22:27 am AM 24 Sun August 7 7 07 07 22 24 Sunday 1 08 Aug 8 +0100 RFC2822 Sun, 24 Aug 1980 07:22:27 +0100 27 31 335946147 0 80 1980 236 3600 2003" (adodb_date len=169)

20:04:13 pm PM 22 Tue July 8 20 08 20 04 22 Tuesday 1 07 Jul 7 +0200 RFC2822 Tue, 22 Jul 1980 20:04:13 +0200 13 31 333137053 2 80 1980 203 7200 2003 Error date(): 333137053
 
  "date CEST 1980-07-22 20:04:13 pm PM 22 Tue July 8 20 08 20 04 22 Tuesday 1 07 Jul 7 +0200 RFC2822 Tue, 22 Jul 1980 20:04:13 +0200 13 31 333137053 2 80 1980 203 7200 2003" (date len=169)
  "date CEST 1980-07-22 19:04:13 pm PM 22 Tue July 7 19 07 19 04 22 Tuesday 1 07 Jul 7 +0100 RFC2822 Tue, 22 Jul 1980 19:04:13 +0100 13 31 333137053 2 80 1980 203 3600 2003" (adodb_date len=169)

Error getdate() 333137053
Array ( [seconds] => 13 [minutes] => 4 [hours] => 20 [mday] => 22 [wday] => 2 [mon] => 7 [year] => 1980 [yday] => 203 [weekday] => Tuesday [month] => July [0] => 333137053 )
Array ( [seconds] => 13 [minutes] => 4 [hours] => 19 [mday] => 22 [wday] => 2 [mon] => 7 [year] => 1980 [yday] => 203 [weekday] => Tuesday [month] => July [0] => 333137053 )

6:22:23 pm PM 12 Thu June 4 16 04 16 22 12 Thursday 1 06 Jun 6 +0200 RFC2822 Thu, 12 Jun 1980 16:22:23 +0200 23 30 329667743 4 80 1980 163 7200 2003 Error date(): 329667743

 
  "date CEST 1980-06-12 16:22:23 pm PM 12 Thu June 4 16 04 16 22 12 Thursday 1 06 Jun 6 +0200 RFC2822 Thu, 12 Jun 1980 16:22:23 +0200 23 30 329667743 4 80 1980 163 7200 2003" (date len=170)
  "date CEST 1980-06-12 15:22:23 pm PM 12 Thu June 3 15 03 15 22 12 Thursday 1 06 Jun 6 +0100 RFC2822 Thu, 12 Jun 1980 15:22:23 +0100 23 30 329667743 4 80 1980 163 3600 2003" (adodb_date len=170)

Error getdate() 329667743
Array ( [seconds] => 23 [minutes] => 22 [hours] => 16 [mday] => 12 [wday] => 4 [mon] => 6 [year] => 1980 [yday] => 163 [weekday] => Thursday [month] => June [0] => 329667743 )
Array ( [seconds] => 23 [minutes] => 22 [hours] => 15 [mday] => 12 [wday] => 4 [mon] => 6 [year] => 1980 [yday] => 163 [weekday] => Thursday [month] => June [0] => 329667743 )

3:34:31 pm PM 15 Sun June 11 23 11 23 34 15 Sunday 1 06 Jun 6 +0200 RFC2822 Sun, 15 Jun 1980 23:34:31 +0200 31 30 329952871 0 80 1980 166 7200 2003 Error date(): 329952871

 
  "date CEST 1980-06-15 23:34:31 pm PM 15 Sun June 11 23 11 23 34 15 Sunday 1 06 Jun 6 +0200 RFC2822 Sun, 15 Jun 1980 23:34:31 +0200 31 30 329952871 0 80 1980 166 7200 2003" (date len=169)
  "date CEST 1980-06-15 22:34:31 pm PM 15 Sun June 10 22 10 22 34 15 Sunday 1 06 Jun 6 +0100 RFC2822 Sun, 15 Jun 1980 22:34:31 +0100 31 30 329952871 0 80 1980 166 3600 2003" (adodb_date len=169)

Error getdate() 329952871
Array ( [seconds] => 31 [minutes] => 34 [hours] => 23 [mday] => 15 [wday] => 0 [mon] => 6 [year] => 1980 [yday] => 166 [weekday] => Sunday [month] => June [0] => 329952871 )
Array ( [seconds] => 31 [minutes] => 34 [hours] => 22 [mday] => 15 [wday] => 0 [mon] => 6 [year] => 1980 [yday] => 166 [weekday] => Sunday [month] => June [0] => 329952871 )

7:46:24 pm PM 15 Mon June 5 17 05 17 46 15 Monday 0 06 Jun 6 +0200 RFC2822 Mon, 15 Jun 1981 17:46:24 +0200 24 30 361467984 1 81 1981 165 7200 2003 Error date(): 361467984

 
  "date CEST 1981-06-15 17:46:24 pm PM 15 Mon June 5 17 05 17 46 15 Monday 0 06 Jun 6 +0200 RFC2822 Mon, 15 Jun 1981 17:46:24 +0200 24 30 361467984 1 81 1981 165 7200 2003" (date len=168)
  "date CEST 1981-06-15 16:46:24 pm PM 15 Mon June 4 16 04 16 46 15 Monday 0 06 Jun 6 +0100 RFC2822 Mon, 15 Jun 1981 16:46:24 +0100 24 30 361467984 1 81 1981 165 3600 2003" (adodb_date len=168)

Error getdate() 361467984
Array ( [seconds] => 24 [minutes] => 46 [hours] => 17 [mday] => 15 [wday] => 1 [mon] => 6 [year] => 1981 [yday] => 165 [weekday] => Monday [month] => June [0] => 361467984 )
Array ( [seconds] => 24 [minutes] => 46 [hours] => 16 [mday] => 15 [wday] => 1 [mon] => 6 [year] => 1981 [yday] => 165 [weekday] => Monday [month] => June [0] => 361467984 )

3:28:15 am AM 17 Tue June 3 3 03 03 28 17 Tuesday 1 06 Jun 6 +0200 RFC2822 Tue, 17 Jun 1980 03:28:15 +0200 15 30 330053295 2 80 1980 168 7200 2003 Error date(): 330053295

 
  "date CEST 1980-06-17 03:28:15 am AM 17 Tue June 3 3 03 03 28 17 Tuesday 1 06 Jun 6 +0200 RFC2822 Tue, 17 Jun 1980 03:28:15 +0200 15 30 330053295 2 80 1980 168 7200 2003" (date len=168)
  "date CEST 1980-06-17 02:28:15 am AM 17 Tue June 2 2 02 02 28 17 Tuesday 1 06 Jun 6 +0100 RFC2822 Tue, 17 Jun 1980 02:28:15 +0100 15 30 330053295 2 80 1980 168 3600 2003" (adodb_date len=168)

Error getdate() 330053295
Array ( [seconds] => 15 [minutes] => 28 [hours] => 3 [mday] => 17 [wday] => 2 [mon] => 6 [year] => 1980 [yday] => 168 [weekday] => Tuesday [month] => June [0] => 330053295 )
Array ( [seconds] => 15 [minutes] => 28 [hours] => 2 [mday] => 17 [wday] => 2 [mon] => 6 [year] => 1980 [yday] => 168 [weekday] => Tuesday [month] => June [0] => 330053295 )

Testing random dates between 100 and 4000

Testing 1960 to 1972, or 378432000 seconds, offset=89080: 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 Tested 4249 dates

Failed :-(

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