-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.6.40-78+ubuntu20.04.1+deb.sury.org+1

adodb: 2024-12-18 06:56:18
php : 2024-12-18 05:56:18
error for %Y %m %x %X, strftime=2024 12 12/18/24 05:56:18, adodb=2024 12 12/18/24 06:56:18
error for %H %M S, strftime=05 56 S, adodb=06 56 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:56 pm PM 14 Tue September 4 16 04 16 48 14 Tuesday 0 09 Sep 9 +0200 RFC2822 Tue, 14 Sep 1982 16:48:56 +0200 56 30 400862936 2 82 1982 256 7200 2003 Error date(): 400862936
 
  "date CEST 1982-09-14 16:48:56 pm PM 14 Tue September 4 16 04 16 48 14 Tuesday 0 09 Sep 9 +0200 RFC2822 Tue, 14 Sep 1982 16:48:56 +0200 56 30 400862936 2 82 1982 256 7200 2003" (date len=174)
  "date CEST 1982-09-14 15:48:56 pm PM 14 Tue September 3 15 03 15 48 14 Tuesday 0 09 Sep 9 +0100 RFC2822 Tue, 14 Sep 1982 15:48:56 +0100 56 30 400862936 2 82 1982 256 3600 2003" (adodb_date len=174)

Error getdate() 400862936
Array ( [seconds] => 56 [minutes] => 48 [hours] => 16 [mday] => 14 [wday] => 2 [mon] => 9 [year] => 1982 [yday] => 256 [weekday] => Tuesday [month] => September [0] => 400862936 )
Array ( [seconds] => 56 [minutes] => 48 [hours] => 15 [mday] => 14 [wday] => 2 [mon] => 9 [year] => 1982 [yday] => 256 [weekday] => Tuesday [month] => September [0] => 400862936 )

2:53:41 am AM 12 Sun April 2 2 02 02 53 12 Sunday 0 04 Apr 4 +0200 RFC2822 Sun, 12 Apr 1981 02:53:41 +0200 41 30 355884821 0 81 1981 101 7200 2003 Error date(): 355884821

 
  "date CEST 1981-04-12 02:53:41 am AM 12 Sun April 2 2 02 02 53 12 Sunday 0 04 Apr 4 +0200 RFC2822 Sun, 12 Apr 1981 02:53:41 +0200 41 30 355884821 0 81 1981 101 7200 2003" (date len=168)
  "date CEST 1981-04-12 01:53:41 am AM 12 Sun April 1 1 01 01 53 12 Sunday 0 04 Apr 4 +0100 RFC2822 Sun, 12 Apr 1981 01:53:41 +0100 41 30 355884821 0 81 1981 101 3600 2003" (adodb_date len=168)

Error getdate() 355884821
Array ( [seconds] => 41 [minutes] => 53 [hours] => 2 [mday] => 12 [wday] => 0 [mon] => 4 [year] => 1981 [yday] => 101 [weekday] => Sunday [month] => April [0] => 355884821 )
Array ( [seconds] => 41 [minutes] => 53 [hours] => 1 [mday] => 12 [wday] => 0 [mon] => 4 [year] => 1981 [yday] => 101 [weekday] => Sunday [month] => April [0] => 355884821 )

8:39:01 am AM 26 Sat September 8 8 08 08 39 26 Saturday 0 09 Sep 9 +0200 RFC2822 Sat, 26 Sep 1981 08:39:01 +0200 01 30 370334341 6 81 1981 268 7200 2003 Error date(): 370334341

 
  "date CEST 1981-09-26 08:39:01 am AM 26 Sat September 8 8 08 08 39 26 Saturday 0 09 Sep 9 +0200 RFC2822 Sat, 26 Sep 1981 08:39:01 +0200 01 30 370334341 6 81 1981 268 7200 2003" (date len=174)
  "date CEST 1981-09-26 07:39:01 am AM 26 Sat September 7 7 07 07 39 26 Saturday 0 09 Sep 9 +0100 RFC2822 Sat, 26 Sep 1981 07:39:01 +0100 01 30 370334341 6 81 1981 268 3600 2003" (adodb_date len=174)

Error getdate() 370334341
Array ( [seconds] => 1 [minutes] => 39 [hours] => 8 [mday] => 26 [wday] => 6 [mon] => 9 [year] => 1981 [yday] => 268 [weekday] => Saturday [month] => September [0] => 370334341 )
Array ( [seconds] => 1 [minutes] => 39 [hours] => 7 [mday] => 26 [wday] => 6 [mon] => 9 [year] => 1981 [yday] => 268 [weekday] => Saturday [month] => September [0] => 370334341 )

5:55:50 am AM 20 Sun July 5 5 05 05 55 20 Sunday 1 07 Jul 7 +0200 RFC2822 Sun, 20 Jul 1980 05:55:50 +0200 50 31 332913350 0 80 1980 201 7200 2003 Error date(): 332913350

 
  "date CEST 1980-07-20 05:55:50 am AM 20 Sun July 5 5 05 05 55 20 Sunday 1 07 Jul 7 +0200 RFC2822 Sun, 20 Jul 1980 05:55:50 +0200 50 31 332913350 0 80 1980 201 7200 2003" (date len=167)
  "date CEST 1980-07-20 04:55:50 am AM 20 Sun July 4 4 04 04 55 20 Sunday 1 07 Jul 7 +0100 RFC2822 Sun, 20 Jul 1980 04:55:50 +0100 50 31 332913350 0 80 1980 201 3600 2003" (adodb_date len=167)

Error getdate() 332913350
Array ( [seconds] => 50 [minutes] => 55 [hours] => 5 [mday] => 20 [wday] => 0 [mon] => 7 [year] => 1980 [yday] => 201 [weekday] => Sunday [month] => July [0] => 332913350 )
Array ( [seconds] => 50 [minutes] => 55 [hours] => 4 [mday] => 20 [wday] => 0 [mon] => 7 [year] => 1980 [yday] => 201 [weekday] => Sunday [month] => July [0] => 332913350 )

10:30:17 am AM 07 Sun September 10 10 10 10 30 7 Sunday 1 09 Sep 9 +0200 RFC2822 Sun, 07 Sep 1980 10:30:17 +0200 17 30 337163417 0 80 1980 250 7200 2003 Error date(): 337163417

 
  "date CEST 1980-09-07 10:30:17 am AM 07 Sun September 10 10 10 10 30 7 Sunday 1 09 Sep 9 +0200 RFC2822 Sun, 07 Sep 1980 10:30:17 +0200 17 30 337163417 0 80 1980 250 7200 2003" (date len=173)
  "date CEST 1980-09-07 09:30:17 am AM 07 Sun September 9 9 09 09 30 7 Sunday 1 09 Sep 9 +0100 RFC2822 Sun, 07 Sep 1980 09:30:17 +0100 17 30 337163417 0 80 1980 250 3600 2003" (adodb_date len=171)

Error getdate() 337163417
Array ( [seconds] => 17 [minutes] => 30 [hours] => 10 [mday] => 7 [wday] => 0 [mon] => 9 [year] => 1980 [yday] => 250 [weekday] => Sunday [month] => September [0] => 337163417 )
Array ( [seconds] => 17 [minutes] => 30 [hours] => 9 [mday] => 7 [wday] => 0 [mon] => 9 [year] => 1980 [yday] => 250 [weekday] => Sunday [month] => September [0] => 337163417 )

3:51:04 pm PM 02 Fri May 1 13 01 13 51 2 Friday 1 05 May 5 +0200 RFC2822 Fri, 02 May 1980 13:51:04 +0200 04 31 326116264 5 80 1980 122 7200 2003 Error date(): 326116264

 
  "date CEST 1980-05-02 13:51:04 pm PM 02 Fri May 1 13 01 13 51 2 Friday 1 05 May 5 +0200 RFC2822 Fri, 02 May 1980 13:51:04 +0200 04 31 326116264 5 80 1980 122 7200 2003" (date len=166)
  "date CEST 1980-05-02 12:51:04 pm PM 02 Fri May 12 12 12 12 51 2 Friday 1 05 May 5 +0100 RFC2822 Fri, 02 May 1980 12:51:04 +0100 04 31 326116264 5 80 1980 122 3600 2003" (adodb_date len=167)

Error getdate() 326116264
Array ( [seconds] => 4 [minutes] => 51 [hours] => 13 [mday] => 2 [wday] => 5 [mon] => 5 [year] => 1980 [yday] => 122 [weekday] => Friday [month] => May [0] => 326116264 )
Array ( [seconds] => 4 [minutes] => 51 [hours] => 12 [mday] => 2 [wday] => 5 [mon] => 5 [year] => 1980 [yday] => 122 [weekday] => Friday [month] => May [0] => 326116264 )

Testing random dates between 100 and 4000

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

Failed :-(

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