-24 :
Warning: mktime() expects at most 6 parameters, 7 given in /opt/lampp/htdocs/tarki_survey/classes/adodb/adodb-time.inc.php on line 732

Warning: gmmktime() expects at most 6 parameters, 7 given in /opt/lampp/htdocs/tarki_survey/classes/adodb/adodb-time.inc.php on line 732
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=7.4.33

adodb: 2025-01-05 00:33:16
php : 2025-01-05 00:33:16

Testing gregorian <=> julian conversion

-12219379200 -12219292800 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

5:49:30 am AM 21 Mon April 5 5 05 05 49 21 Monday 1 04 Apr 4 +0200 RFC2822 Mon, 21 Apr 1980 05:49:30 +0200 30 30 325136970 1 80 1980 111 7200 2003 Error date(): 325136970
 
  "date CEST 1980-04-21 05:49:30 am AM 21 Mon April 5 5 05 05 49 21 Monday 1 04 Apr 4 +0200 RFC2822 Mon, 21 Apr 1980 05:49:30 +0200 30 30 325136970 1 80 1980 111 7200 2003" (date len=168)
  "date CEST 1980-04-21 04:49:30 am AM 21 Mon April 4 4 04 04 49 21 Monday 1 04 Apr 4 +0100 RFC2822 Mon, 21 Apr 1980 04:49:30 +0100 30 30 325136970 1 80 1980 111 3600 2003" (adodb_date len=168)

Error getdate() 325136970
Array ( [seconds] => 30 [minutes] => 49 [hours] => 5 [mday] => 21 [wday] => 1 [mon] => 4 [year] => 1980 [yday] => 111 [weekday] => Monday [month] => April [0] => 325136970 )
Array ( [seconds] => 30 [minutes] => 49 [hours] => 4 [mday] => 21 [wday] => 1 [mon] => 4 [year] => 1980 [yday] => 111 [weekday] => Monday [month] => April [0] => 325136970 )

3:11:16 pm PM 08 Fri May 1 13 01 13 11 8 Friday 0 05 May 5 +0200 RFC2822 Fri, 08 May 1981 13:11:16 +0200 16 31 358168276 5 81 1981 127 7200 2003 Error date(): 358168276

 
  "date CEST 1981-05-08 13:11:16 pm PM 08 Fri May 1 13 01 13 11 8 Friday 0 05 May 5 +0200 RFC2822 Fri, 08 May 1981 13:11:16 +0200 16 31 358168276 5 81 1981 127 7200 2003" (date len=166)
  "date CEST 1981-05-08 12:11:16 pm PM 08 Fri May 12 12 12 12 11 8 Friday 0 05 May 5 +0100 RFC2822 Fri, 08 May 1981 12:11:16 +0100 16 31 358168276 5 81 1981 127 3600 2003" (adodb_date len=167)

Error getdate() 358168276
Array ( [seconds] => 16 [minutes] => 11 [hours] => 13 [mday] => 8 [wday] => 5 [mon] => 5 [year] => 1981 [yday] => 127 [weekday] => Friday [month] => May [0] => 358168276 )
Array ( [seconds] => 16 [minutes] => 11 [hours] => 12 [mday] => 8 [wday] => 5 [mon] => 5 [year] => 1981 [yday] => 127 [weekday] => Friday [month] => May [0] => 358168276 )

9:20:33 am AM 03 Fri September 9 9 09 09 20 3 Friday 0 09 Sep 9 +0200 RFC2822 Fri, 03 Sep 1982 09:20:33 +0200 33 30 399885633 5 82 1982 245 7200 2003 Error date(): 399885633

 
  "date CEST 1982-09-03 09:20:33 am AM 03 Fri September 9 9 09 09 20 3 Friday 0 09 Sep 9 +0200 RFC2822 Fri, 03 Sep 1982 09:20:33 +0200 33 30 399885633 5 82 1982 245 7200 2003" (date len=171)
  "date CEST 1982-09-03 08:20:33 am AM 03 Fri September 8 8 08 08 20 3 Friday 0 09 Sep 9 +0100 RFC2822 Fri, 03 Sep 1982 08:20:33 +0100 33 30 399885633 5 82 1982 245 3600 2003" (adodb_date len=171)

8:31:25 pm PM 03 Tue June 6 18 06 18 31 3 Tuesday 1 06 Jun 6 +0200 RFC2822 Tue, 03 Jun 1980 18:31:25 +0200 25 30 328897885 2 80 1980 154 7200 2003 Error date(): 328897885
 
  "date CEST 1980-06-03 18:31:25 pm PM 03 Tue June 6 18 06 18 31 3 Tuesday 1 06 Jun 6 +0200 RFC2822 Tue, 03 Jun 1980 18:31:25 +0200 25 30 328897885 2 80 1980 154 7200 2003" (date len=168)
  "date CEST 1980-06-03 17:31:25 pm PM 03 Tue June 5 17 05 17 31 3 Tuesday 1 06 Jun 6 +0100 RFC2822 Tue, 03 Jun 1980 17:31:25 +0100 25 30 328897885 2 80 1980 154 3600 2003" (adodb_date len=168)

Error getdate() 328897885
Array ( [seconds] => 25 [minutes] => 31 [hours] => 18 [mday] => 3 [wday] => 2 [mon] => 6 [year] => 1980 [yday] => 154 [weekday] => Tuesday [month] => June [0] => 328897885 )
Array ( [seconds] => 25 [minutes] => 31 [hours] => 17 [mday] => 3 [wday] => 2 [mon] => 6 [year] => 1980 [yday] => 154 [weekday] => Tuesday [month] => June [0] => 328897885 )

5:17:22 am AM 16 Thu July 5 5 05 05 17 16 Thursday 0 07 Jul 7 +0200 RFC2822 Thu, 16 Jul 1981 05:17:22 +0200 22 31 364101442 4 81 1981 196 7200 2003 Error date(): 364101442

 
  "date CEST 1981-07-16 05:17:22 am AM 16 Thu July 5 5 05 05 17 16 Thursday 0 07 Jul 7 +0200 RFC2822 Thu, 16 Jul 1981 05:17:22 +0200 22 31 364101442 4 81 1981 196 7200 2003" (date len=169)
  "date CEST 1981-07-16 04:17:22 am AM 16 Thu July 4 4 04 04 17 16 Thursday 0 07 Jul 7 +0100 RFC2822 Thu, 16 Jul 1981 04:17:22 +0100 22 31 364101442 4 81 1981 196 3600 2003" (adodb_date len=169)

Error getdate() 364101442
Array ( [seconds] => 22 [minutes] => 17 [hours] => 5 [mday] => 16 [wday] => 4 [mon] => 7 [year] => 1981 [yday] => 196 [weekday] => Thursday [month] => July [0] => 364101442 )
Array ( [seconds] => 22 [minutes] => 17 [hours] => 4 [mday] => 16 [wday] => 4 [mon] => 7 [year] => 1981 [yday] => 196 [weekday] => Thursday [month] => July [0] => 364101442 )

7:33:44 pm PM 21 Wed July 5 17 05 17 33 21 Wednesday 0 07 Jul 7 +0200 RFC2822 Wed, 21 Jul 1982 17:33:44 +0200 44 31 396113624 3 82 1982 201 7200 2003 Error date(): 396113624

 
  "date CEST 1982-07-21 17:33:44 pm PM 21 Wed July 5 17 05 17 33 21 Wednesday 0 07 Jul 7 +0200 RFC2822 Wed, 21 Jul 1982 17:33:44 +0200 44 31 396113624 3 82 1982 201 7200 2003" (date len=171)
  "date CEST 1982-07-21 16:33:44 pm PM 21 Wed July 4 16 04 16 33 21 Wednesday 0 07 Jul 7 +0100 RFC2822 Wed, 21 Jul 1982 16:33:44 +0100 44 31 396113624 3 82 1982 201 3600 2003" (adodb_date len=171)

Error getdate() 396113624
Array ( [seconds] => 44 [minutes] => 33 [hours] => 17 [mday] => 21 [wday] => 3 [mon] => 7 [year] => 1982 [yday] => 201 [weekday] => Wednesday [month] => July [0] => 396113624 )
Array ( [seconds] => 44 [minutes] => 33 [hours] => 16 [mday] => 21 [wday] => 3 [mon] => 7 [year] => 1982 [yday] => 201 [weekday] => Wednesday [month] => July [0] => 396113624 )

7:52:39 pm PM 18 Sat July 5 17 05 17 52 18 Saturday 0 07 Jul 7 +0200 RFC2822 Sat, 18 Jul 1981 17:52:39 +0200 39 31 364319559 6 81 1981 198 7200 2003 Error date(): 364319559

 
  "date CEST 1981-07-18 17:52:39 pm PM 18 Sat July 5 17 05 17 52 18 Saturday 0 07 Jul 7 +0200 RFC2822 Sat, 18 Jul 1981 17:52:39 +0200 39 31 364319559 6 81 1981 198 7200 2003" (date len=170)
  "date CEST 1981-07-18 16:52:39 pm PM 18 Sat July 4 16 04 16 52 18 Saturday 0 07 Jul 7 +0100 RFC2822 Sat, 18 Jul 1981 16:52:39 +0100 39 31 364319559 6 81 1981 198 3600 2003" (adodb_date len=170)

Error getdate() 364319559
Array ( [seconds] => 39 [minutes] => 52 [hours] => 17 [mday] => 18 [wday] => 6 [mon] => 7 [year] => 1981 [yday] => 198 [weekday] => Saturday [month] => July [0] => 364319559 )
Array ( [seconds] => 39 [minutes] => 52 [hours] => 16 [mday] => 18 [wday] => 6 [mon] => 7 [year] => 1981 [yday] => 198 [weekday] => Saturday [month] => July [0] => 364319559 )

Testing random dates between 100 and 4000

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

Failed :-(

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