Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.sysadmin.recovery > #30863
| From | bofh@spuddy.org (Stephen Harris) |
|---|---|
| Newsgroups | alt.sysadmin.recovery |
| Subject | Re: Is 2022 a good year? |
| Date | 2023-03-01 14:37 -0500 |
| Organization | *NOT* Spud's Public Usenet Domain |
| Message-ID | <sh9ott.0aq.ln@spuddy.org> (permalink) |
| References | <slrntmhnj7.34tmj.julian@n6are.com> <m2k000cnxm.fsf@aglet.net> |
Robin Stephenson <robin@aglet.net> wrote:
> Don't know about 2022, but 2020 seems to be dragging on rather:
> cdate () {
> perl -MPOSIX -MTime::Local -e '@t=localtime;$d=int(1+.5+(timelocal(0,0,3,@t[3..5])-timelocal(0,0,3,1,2,120))/(60*60*24));print strftime "%a Mar $d %X %Z 2020\n",@t'
> }
#!/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"
% september ; covdate
Wed Sep 10774 14:36:42 EST 1993
Wed Mar 1096 14:36:42 EST 2020
--
rgds
Stephen
Back to alt.sysadmin.recovery | Previous | Next — Previous in thread | Next in thread | Find similar
Is 2022 a good year? Julian Macassey <julian@n6are.com> - 2022-11-07 10:31 +0000
Re: Is 2022 a good year? Michel <abuse@rubberchicken.nl> - 2022-11-07 12:29 +0100
Re: Is 2022 a good year? John Dow <jmd@nelefa.org> - 2022-11-07 11:34 +0000
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2022-11-09 01:33 -0800
Re: Is 2022 a good year? Lee Ann Goldstein <leeann@auntiquark.net> - 2022-12-04 00:07 -0800
Re: Is 2022 a good year? David Gersic <usenet_spam_trap@zaccaria-pinball.com> - 2022-11-15 04:56 +0000
Re: Is 2022 a good year? Gary Barnes <gkb@adminspotting.org> - 2022-11-15 10:34 +0000
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2022-11-15 14:55 -0800
Re: Is 2022 a good year? ptomblin+netnews@xcski.com (Paul Tomblin) - 2022-11-17 17:05 +0000
Re: Is 2022 a good year? David Gersic <usenet_spam_trap@zaccaria-pinball.com> - 2022-11-18 01:11 +0000
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2022-11-18 09:54 -0800
Re: Is 2022 a good year? pepinno@thinkpad.naleco.com.NOSPAM (Pepinno The Great) - 2022-12-10 16:30 +0100
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2022-12-10 18:33 -0800
Re: Is 2022 a good year? mroberds@att.net - 2022-12-30 21:38 +0000
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2022-12-30 18:45 -0800
Re: Is 2022 a good year? Robin Stephenson <robin@aglet.net> - 2023-03-01 18:43 +0000
Re: Is 2022 a good year? bofh@spuddy.org (Stephen Harris) - 2023-03-01 14:37 -0500
Re: Is 2022 a good year? Gary Barnes <gkb@adminspotting.org> - 2023-03-01 20:38 +0000
Re: Is 2022 a good year? Michel <abuse@rubberchicken.nl> - 2023-03-01 22:16 +0100
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2023-03-01 14:15 -0800
Re: Is 2022 a good year? Michel <abuse@rubberchicken.nl> - 2023-03-04 12:36 +0100
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2023-03-04 10:00 -0800
Re: Is 2022 a good year? mroberds@att.net - 2023-11-01 06:01 +0000
Re: Is 2022 a good year? Niklas Karlsson <nikke.karlsson@gmail.com> - 2023-11-02 19:02 +0000
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2023-11-02 17:18 -0700
Re: Is 2022 a good year? dagbrown@LART.ca (Dave Brown) - 2023-09-01 09:15 +0000
Re: Is 2022 a good year? The Horny Goat <lcraver@home.ca> - 2023-09-01 12:36 -0700
csiph-web