Discussion:
"never ending month" calendar?
(too old to reply)
hymie!
2021-12-29 18:16:41 UTC
Permalink
I hope this isn't UI.

Many years ago, we used to comment on September 1994 (when AOL joined
Usenet) as the "month that never ended," and you used to see people
referring to the days as "3274 September 1994".

Does anybody know where I might find such a thing? It seems like March
2020 would be another candidate, and my programming skills are not what
they used to be.

--hymie! http://nasalinux.net/~hymie ***@nasalinux.net
Stephen Harris
2021-12-29 19:39:09 UTC
Permalink
Post by hymie!
I hope this isn't UI.
Many years ago, we used to comment on September 1994 (when AOL joined
Usenet) as the "month that never ended," and you used to see people
referring to the days as "3274 September 1994".
Does anybody know where I might find such a thing? It seems like March
2020 would be another candidate, and my programming skills are not what
they used to be.
We can cheat.

#!/bin/bash

set -- $(date "$@" +"%s %a %X %Z")
case $0 in
*september) o=8643 ; m=Sep ; y=1993 ;;
*covdate) o=18321 ; m=Mar ; y=2020 ;;
*) echo Unknown command
exit
esac
let d=$1/86400-$o
echo "$2 $m $d $3 $4 $y"
--
rgds
Stephen
hymie!
2022-01-10 15:54:32 UTC
Permalink
(forgot my chicken sacrifice, sorry if you see a double post)

In our last episode, the evil Dr. Lacto had captured our hero,
Post by Stephen Harris
#!/bin/bash
case $0 in
*september) o=8643 ; m=Sep ; y=1993 ;;
*covdate) o=18321 ; m=Mar ; y=2020 ;;
*) echo Unknown command
exit
esac
let d=$1/86400-$o
echo "$2 $m $d $3 $4 $y"
Worked like a charm. Thanks!

--hymie!
Monday, March 681, 2020
Grant Taylor
2022-01-10 18:09:35 UTC
Permalink
Post by Stephen Harris
We can cheat.
Cute.
Post by Stephen Harris
#!/bin/bash
case $0 in
*september) o=8643 ; m=Sep ; y=1993 ;;
*covdate) o=18321 ; m=Mar ; y=2020 ;;
*) echo Unknown command
exit
esac
let d=$1/86400-$o
echo "$2 $m $d $3 $4 $y"
*exchangedate) 0=18961 ; M=Dec ; y=2021 ;;

For Microsoft's recent Exchange date problem.
--
Grant. . . .
unix || die
--
Grant. . . .
unix || die
Loading...