-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-25 07:18:59
php : 2024-12-25 06:18:59
error for %Y %m %x %X, strftime=2024 12 12/25/24 06:18:59, adodb=2024 12 12/25/24 07:18:59
error for %H %M S, strftime=06 18 S, adodb=07 18 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

1:35:37 am AM 26 Fri June 11 11 11 11 35 26 Friday 0 06 Jun 6 +0300 RFC2822 Fri, 26 Jun 1981 11:35:37 +0300 37 30 362392537 5 81 1981 176 10800 2003 Error date(): 362392537
 
  "date EEST 1981-06-26 11:35:37 am AM 26 Fri June 11 11 11 11 35 26 Friday 0 06 Jun 6 +0300 RFC2822 Fri, 26 Jun 1981 11:35:37 +0300 37 30 362392537 5 81 1981 176 10800 2003" (date len=170)
  "date EEST 1981-06-26 10:35:37 am AM 26 Fri June 10 10 10 10 35 26 Friday 0 06 Jun 6 +0200 RFC2822 Fri, 26 Jun 1981 10:35:37 +0200 37 30 362392537 5 81 1981 176 7200 2003" (adodb_date len=169)

Error getdate() 362392537
Array ( [seconds] => 37 [minutes] => 35 [hours] => 11 [mday] => 26 [wday] => 5 [mon] => 6 [year] => 1981 [yday] => 176 [weekday] => Friday [month] => June [0] => 362392537 )
Array ( [seconds] => 37 [minutes] => 35 [hours] => 10 [mday] => 26 [wday] => 5 [mon] => 6 [year] => 1981 [yday] => 176 [weekday] => Friday [month] => June [0] => 362392537 )

20:00:20 pm PM 15 Wed April 8 20 08 20 00 15 Wednesday 0 04 Apr 4 +0300 RFC2822 Wed, 15 Apr 1981 20:00:20 +0300 20 30 356202020 3 81 1981 104 10800 2003 Error date(): 356202020

 
  "date EEST 1981-04-15 20:00:20 pm PM 15 Wed April 8 20 08 20 00 15 Wednesday 0 04 Apr 4 +0300 RFC2822 Wed, 15 Apr 1981 20:00:20 +0300 20 30 356202020 3 81 1981 104 10800 2003" (date len=173)
  "date EEST 1981-04-15 19:00:20 pm PM 15 Wed April 7 19 07 19 00 15 Wednesday 0 04 Apr 4 +0200 RFC2822 Wed, 15 Apr 1981 19:00:20 +0200 20 30 356202020 3 81 1981 104 7200 2003" (adodb_date len=172)

6:39:06 pm PM 21 Thu May 4 16 04 16 39 21 Thursday 0 05 May 5 +0300 RFC2822 Thu, 21 May 1981 16:39:06 +0300 06 31 359300346 4 81 1981 140 10800 2003 Error date(): 359300346
 
  "date EEST 1981-05-21 16:39:06 pm PM 21 Thu May 4 16 04 16 39 21 Thursday 0 05 May 5 +0300 RFC2822 Thu, 21 May 1981 16:39:06 +0300 06 31 359300346 4 81 1981 140 10800 2003" (date len=170)
  "date EEST 1981-05-21 15:39:06 pm PM 21 Thu May 3 15 03 15 39 21 Thursday 0 05 May 5 +0200 RFC2822 Thu, 21 May 1981 15:39:06 +0200 06 31 359300346 4 81 1981 140 7200 2003" (adodb_date len=169)

Error getdate() 359300346
Array ( [seconds] => 6 [minutes] => 39 [hours] => 16 [mday] => 21 [wday] => 4 [mon] => 5 [year] => 1981 [yday] => 140 [weekday] => Thursday [month] => May [0] => 359300346 )
Array ( [seconds] => 6 [minutes] => 39 [hours] => 15 [mday] => 21 [wday] => 4 [mon] => 5 [year] => 1981 [yday] => 140 [weekday] => Thursday [month] => May [0] => 359300346 )

2:43:38 pm PM 27 Tue April 10 22 10 22 43 27 Tuesday 0 04 Apr 4 +0300 RFC2822 Tue, 27 Apr 1982 22:43:38 +0300 38 30 388784618 2 82 1982 116 10800 2003 Error date(): 388784618

 
  "date EEST 1982-04-27 22:43:38 pm PM 27 Tue April 10 22 10 22 43 27 Tuesday 0 04 Apr 4 +0300 RFC2822 Tue, 27 Apr 1982 22:43:38 +0300 38 30 388784618 2 82 1982 116 10800 2003" (date len=172)
  "date EEST 1982-04-27 21:43:38 pm PM 27 Tue April 9 21 09 21 43 27 Tuesday 0 04 Apr 4 +0200 RFC2822 Tue, 27 Apr 1982 21:43:38 +0200 38 30 388784618 2 82 1982 116 7200 2003" (adodb_date len=170)

Error getdate() 388784618
Array ( [seconds] => 38 [minutes] => 43 [hours] => 22 [mday] => 27 [wday] => 2 [mon] => 4 [year] => 1982 [yday] => 116 [weekday] => Tuesday [month] => April [0] => 388784618 )
Array ( [seconds] => 38 [minutes] => 43 [hours] => 21 [mday] => 27 [wday] => 2 [mon] => 4 [year] => 1982 [yday] => 116 [weekday] => Tuesday [month] => April [0] => 388784618 )

2:14:51 am AM 23 Sun May 2 2 02 02 14 23 Sunday 0 05 May 5 +0300 RFC2822 Sun, 23 May 1982 02:14:51 +0300 51 31 390957291 0 82 1982 142 10800 2003 Error date(): 390957291

 
  "date EEST 1982-05-23 02:14:51 am AM 23 Sun May 2 2 02 02 14 23 Sunday 0 05 May 5 +0300 RFC2822 Sun, 23 May 1982 02:14:51 +0300 51 31 390957291 0 82 1982 142 10800 2003" (date len=167)
  "date EEST 1982-05-23 01:14:51 am AM 23 Sun May 1 1 01 01 14 23 Sunday 0 05 May 5 +0200 RFC2822 Sun, 23 May 1982 01:14:51 +0200 51 31 390957291 0 82 1982 142 7200 2003" (adodb_date len=166)

Error getdate() 390957291
Array ( [seconds] => 51 [minutes] => 14 [hours] => 2 [mday] => 23 [wday] => 0 [mon] => 5 [year] => 1982 [yday] => 142 [weekday] => Sunday [month] => May [0] => 390957291 )
Array ( [seconds] => 51 [minutes] => 14 [hours] => 1 [mday] => 23 [wday] => 0 [mon] => 5 [year] => 1982 [yday] => 142 [weekday] => Sunday [month] => May [0] => 390957291 )

5:26:56 pm PM 07 Mon June 3 15 03 15 26 7 Monday 0 06 Jun 6 +0300 RFC2822 Mon, 07 Jun 1982 15:26:56 +0300 56 30 392300816 1 82 1982 157 10800 2003 Error date(): 392300816

 
  "date EEST 1982-06-07 15:26:56 pm PM 07 Mon June 3 15 03 15 26 7 Monday 0 06 Jun 6 +0300 RFC2822 Mon, 07 Jun 1982 15:26:56 +0300 56 30 392300816 1 82 1982 157 10800 2003" (date len=168)
  "date EEST 1982-06-07 14:26:56 pm PM 07 Mon June 2 14 02 14 26 7 Monday 0 06 Jun 6 +0200 RFC2822 Mon, 07 Jun 1982 14:26:56 +0200 56 30 392300816 1 82 1982 157 7200 2003" (adodb_date len=167)

Error getdate() 392300816
Array ( [seconds] => 56 [minutes] => 26 [hours] => 15 [mday] => 7 [wday] => 1 [mon] => 6 [year] => 1982 [yday] => 157 [weekday] => Monday [month] => June [0] => 392300816 )
Array ( [seconds] => 56 [minutes] => 26 [hours] => 14 [mday] => 7 [wday] => 1 [mon] => 6 [year] => 1982 [yday] => 157 [weekday] => Monday [month] => June [0] => 392300816 )

2:37:27 am AM 06 Sun September 2 2 02 02 37 6 Sunday 0 09 Sep 9 +0300 RFC2822 Sun, 06 Sep 1981 02:37:27 +0300 27 30 368581047 0 81 1981 248 10800 2003 Error date(): 368581047

 
  "date EEST 1981-09-06 02:37:27 am AM 06 Sun September 2 2 02 02 37 6 Sunday 0 09 Sep 9 +0300 RFC2822 Sun, 06 Sep 1981 02:37:27 +0300 27 30 368581047 0 81 1981 248 10800 2003" (date len=172)
  "date EEST 1981-09-06 01:37:27 am AM 06 Sun September 1 1 01 01 37 6 Sunday 0 09 Sep 9 +0200 RFC2822 Sun, 06 Sep 1981 01:37:27 +0200 27 30 368581047 0 81 1981 248 7200 2003" (adodb_date len=171)

Error getdate() 368581047
Array ( [seconds] => 27 [minutes] => 37 [hours] => 2 [mday] => 6 [wday] => 0 [mon] => 9 [year] => 1981 [yday] => 248 [weekday] => Sunday [month] => September [0] => 368581047 )
Array ( [seconds] => 27 [minutes] => 37 [hours] => 1 [mday] => 6 [wday] => 0 [mon] => 9 [year] => 1981 [yday] => 248 [weekday] => Sunday [month] => September [0] => 368581047 )

1:48:30 am AM 18 Sun July 1 1 01 01 48 18 Sunday 0 07 Jul 7 +0300 RFC2822 Sun, 18 Jul 1982 01:48:30 +0300 30 31 395794110 0 82 1982 198 10800 2003 Error date(): 395794110

 
  "date EEST 1982-07-18 01:48:30 am AM 18 Sun July 1 1 01 01 48 18 Sunday 0 07 Jul 7 +0300 RFC2822 Sun, 18 Jul 1982 01:48:30 +0300 30 31 395794110 0 82 1982 198 10800 2003" (date len=168)
  "date EEST 1982-07-18 00:48:30 am AM 18 Sun July 12 0 12 00 48 18 Sunday 0 07 Jul 7 +0200 RFC2822 Sun, 18 Jul 1982 00:48:30 +0200 30 31 395794110 0 82 1982 198 7200 2003" (adodb_date len=168)

Error getdate() 395794110
Array ( [seconds] => 30 [minutes] => 48 [hours] => 1 [mday] => 18 [wday] => 0 [mon] => 7 [year] => 1982 [yday] => 198 [weekday] => Sunday [month] => July [0] => 395794110 )
Array ( [seconds] => 30 [minutes] => 48 [hours] => 0 [mday] => 18 [wday] => 0 [mon] => 7 [year] => 1982 [yday] => 198 [weekday] => Sunday [month] => July [0] => 395794110 )

Testing random dates between 100 and 4000

Testing 1963 to 1975, or 378432000 seconds, offset=58272: 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 Tested 6495 dates

Failed :-(

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