-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: 2024-12-22 13:01:11
php : 2024-12-22 12:01:11
error for %Y %m %x %X, strftime=2024 12 12/22/24 12:01:11, adodb=2024 12 12/22/24 13:01:11
error for %H %M S, strftime=12 01 S, adodb=13 01 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:49:26 am AM 28 Sun June 2 2 02 02 49 28 Sunday 0 06 Jun 6 +0200 RFC2822 Sun, 28 Jun 1981 02:49:26 +0200 26 30 362537366 0 81 1981 178 7200 2003 Error date(): 362537366
 
  "date CEST 1981-06-28 02:49:26 am AM 28 Sun June 2 2 02 02 49 28 Sunday 0 06 Jun 6 +0200 RFC2822 Sun, 28 Jun 1981 02:49:26 +0200 26 30 362537366 0 81 1981 178 7200 2003" (date len=167)
  "date CEST 1981-06-28 01:49:26 am AM 28 Sun June 1 1 01 01 49 28 Sunday 0 06 Jun 6 +0100 RFC2822 Sun, 28 Jun 1981 01:49:26 +0100 26 30 362537366 0 81 1981 178 3600 2003" (adodb_date len=167)

Error getdate() 362537366
Array ( [seconds] => 26 [minutes] => 49 [hours] => 2 [mday] => 28 [wday] => 0 [mon] => 6 [year] => 1981 [yday] => 178 [weekday] => Sunday [month] => June [0] => 362537366 )
Array ( [seconds] => 26 [minutes] => 49 [hours] => 1 [mday] => 28 [wday] => 0 [mon] => 6 [year] => 1981 [yday] => 178 [weekday] => Sunday [month] => June [0] => 362537366 )

4:25:46 am AM 01 Tue September 4 4 04 04 25 1 Tuesday 0 09 Sep 9 +0200 RFC2822 Tue, 01 Sep 1981 04:25:46 +0200 46 30 368159146 2 81 1981 243 7200 2003 Error date(): 368159146

 
  "date CEST 1981-09-01 04:25:46 am AM 01 Tue September 4 4 04 04 25 1 Tuesday 0 09 Sep 9 +0200 RFC2822 Tue, 01 Sep 1981 04:25:46 +0200 46 30 368159146 2 81 1981 243 7200 2003" (date len=172)
  "date CEST 1981-09-01 03:25:46 am AM 01 Tue September 3 3 03 03 25 1 Tuesday 0 09 Sep 9 +0100 RFC2822 Tue, 01 Sep 1981 03:25:46 +0100 46 30 368159146 2 81 1981 243 3600 2003" (adodb_date len=172)

Error getdate() 368159146
Array ( [seconds] => 46 [minutes] => 25 [hours] => 4 [mday] => 1 [wday] => 2 [mon] => 9 [year] => 1981 [yday] => 243 [weekday] => Tuesday [month] => September [0] => 368159146 )
Array ( [seconds] => 46 [minutes] => 25 [hours] => 3 [mday] => 1 [wday] => 2 [mon] => 9 [year] => 1981 [yday] => 243 [weekday] => Tuesday [month] => September [0] => 368159146 )

4:07:09 pm PM 29 Mon March 2 14 02 14 07 29 Monday 0 03 Mar 3 +0200 RFC2822 Mon, 29 Mar 1982 14:07:09 +0200 09 31 386251629 1 82 1982 87 7200 2003 Error date(): 386251629

 
  "date CEST 1982-03-29 14:07:09 pm PM 29 Mon March 2 14 02 14 07 29 Monday 0 03 Mar 3 +0200 RFC2822 Mon, 29 Mar 1982 14:07:09 +0200 09 31 386251629 1 82 1982 87 7200 2003" (date len=168)
  "date CEST 1982-03-29 13:07:09 pm PM 29 Mon March 1 13 01 13 07 29 Monday 0 03 Mar 3 +0100 RFC2822 Mon, 29 Mar 1982 13:07:09 +0100 09 31 386251629 1 82 1982 87 3600 2003" (adodb_date len=168)

Error getdate() 386251629
Array ( [seconds] => 9 [minutes] => 7 [hours] => 14 [mday] => 29 [wday] => 1 [mon] => 3 [year] => 1982 [yday] => 87 [weekday] => Monday [month] => March [0] => 386251629 )
Array ( [seconds] => 9 [minutes] => 7 [hours] => 13 [mday] => 29 [wday] => 1 [mon] => 3 [year] => 1982 [yday] => 87 [weekday] => Monday [month] => March [0] => 386251629 )

1:56:08 am AM 07 Mon July 11 11 11 11 56 7 Monday 1 07 Jul 7 +0200 RFC2822 Mon, 07 Jul 1980 11:56:08 +0200 08 31 331811768 1 80 1980 188 7200 2003 Error date(): 331811768

 
  "date CEST 1980-07-07 11:56:08 am AM 07 Mon July 11 11 11 11 56 7 Monday 1 07 Jul 7 +0200 RFC2822 Mon, 07 Jul 1980 11:56:08 +0200 08 31 331811768 1 80 1980 188 7200 2003" (date len=168)
  "date CEST 1980-07-07 10:56:08 am AM 07 Mon July 10 10 10 10 56 7 Monday 1 07 Jul 7 +0100 RFC2822 Mon, 07 Jul 1980 10:56:08 +0100 08 31 331811768 1 80 1980 188 3600 2003" (adodb_date len=168)

Error getdate() 331811768
Array ( [seconds] => 8 [minutes] => 56 [hours] => 11 [mday] => 7 [wday] => 1 [mon] => 7 [year] => 1980 [yday] => 188 [weekday] => Monday [month] => July [0] => 331811768 )
Array ( [seconds] => 8 [minutes] => 56 [hours] => 10 [mday] => 7 [wday] => 1 [mon] => 7 [year] => 1980 [yday] => 188 [weekday] => Monday [month] => July [0] => 331811768 )

4:58:45 am AM 15 Tue December 4 4 04 04 58 15 Tuesday 0 12 Dec 12 +0100 RFC2822 Tue, 15 Dec 1981 04:58:45 +0100 45 31 377236725 2 81 1981 348 3600 2003 Error date(): 377236725

 
  "date CET 1981-12-15 04:58:45 am AM 15 Tue December 4 4 04 04 58 15 Tuesday 0 12 Dec 12 +0100 RFC2822 Tue, 15 Dec 1981 04:58:45 +0100 45 31 377236725 2 81 1981 348 3600 2003" (date len=172)
  "date CET 1981-12-15 05:58:45 am AM 15 Tue December 5 5 05 05 58 15 Tuesday 0 12 Dec 12 +0200 RFC2822 Tue, 15 Dec 1981 05:58:45 +0200 45 31 377236725 2 81 1981 348 7200 2003" (adodb_date len=172)

Error getdate() 377236725
Array ( [seconds] => 45 [minutes] => 58 [hours] => 4 [mday] => 15 [wday] => 2 [mon] => 12 [year] => 1981 [yday] => 348 [weekday] => Tuesday [month] => December [0] => 377236725 )
Array ( [seconds] => 45 [minutes] => 58 [hours] => 5 [mday] => 15 [wday] => 2 [mon] => 12 [year] => 1981 [yday] => 348 [weekday] => Tuesday [month] => December [0] => 377236725 )

1:47:29 pm PM 14 Sun September 9 21 09 21 47 14 Sunday 1 09 Sep 9 +0200 RFC2822 Sun, 14 Sep 1980 21:47:29 +0200 29 30 337808849 0 80 1980 257 7200 2003 Error date(): 337808849

 
  "date CEST 1980-09-14 21:47:29 pm PM 14 Sun September 9 21 09 21 47 14 Sunday 1 09 Sep 9 +0200 RFC2822 Sun, 14 Sep 1980 21:47:29 +0200 29 30 337808849 0 80 1980 257 7200 2003" (date len=173)
  "date CEST 1980-09-14 20:47:29 pm PM 14 Sun September 8 20 08 20 47 14 Sunday 1 09 Sep 9 +0100 RFC2822 Sun, 14 Sep 1980 20:47:29 +0100 29 30 337808849 0 80 1980 257 3600 2003" (adodb_date len=173)

Error getdate() 337808849
Array ( [seconds] => 29 [minutes] => 47 [hours] => 21 [mday] => 14 [wday] => 0 [mon] => 9 [year] => 1980 [yday] => 257 [weekday] => Sunday [month] => September [0] => 337808849 )
Array ( [seconds] => 29 [minutes] => 47 [hours] => 20 [mday] => 14 [wday] => 0 [mon] => 9 [year] => 1980 [yday] => 257 [weekday] => Sunday [month] => September [0] => 337808849 )

1:01:32 am AM 22 Tue April 11 11 11 11 01 22 Tuesday 1 04 Apr 4 +0200 RFC2822 Tue, 22 Apr 1980 11:01:32 +0200 32 30 325242092 2 80 1980 112 7200 2003 Error date(): 325242092

 
  "date CEST 1980-04-22 11:01:32 am AM 22 Tue April 11 11 11 11 01 22 Tuesday 1 04 Apr 4 +0200 RFC2822 Tue, 22 Apr 1980 11:01:32 +0200 32 30 325242092 2 80 1980 112 7200 2003" (date len=171)
  "date CEST 1980-04-22 10:01:32 am AM 22 Tue April 10 10 10 10 01 22 Tuesday 1 04 Apr 4 +0100 RFC2822 Tue, 22 Apr 1980 10:01:32 +0100 32 30 325242092 2 80 1980 112 3600 2003" (adodb_date len=171)

Error getdate() 325242092
Array ( [seconds] => 32 [minutes] => 1 [hours] => 11 [mday] => 22 [wday] => 2 [mon] => 4 [year] => 1980 [yday] => 112 [weekday] => Tuesday [month] => April [0] => 325242092 )
Array ( [seconds] => 32 [minutes] => 1 [hours] => 10 [mday] => 22 [wday] => 2 [mon] => 4 [year] => 1980 [yday] => 112 [weekday] => Tuesday [month] => April [0] => 325242092 )

Testing random dates between 100 and 4000

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

Failed :-(

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