Jump to content

Discordian date: Difference between revisions

m
(Added Easylang)
Line 2,182:
.
func day_of_year y m d .
monthdaysdays[] = [ 31 28 31 30 31 30 31 31 30 31 30 31 ]
m -= 1repeat
while m >-= 1
duntil m += monthdays[m]0
md -+= 1days[m]
if m = 2 and leap y = 1
d += 1
.
m -= 1
.
return d
Line 2,218:
print ddate a[1] a[2] a[3]
.
show "2100-12-31"
show "2012-02-28"
show "2012-02-29"
show "2012-03-01"
show "2010-07-22"
show "2012-09-02"
show "2012-12-31"
show "2016-01-05"
show "20122016-02-28"
show "20122016-02-29"
show "20122016-03-01"
show "21002016-12-31"
show "2025-03-19"
show substr timestr systime 1 10
2,044

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.