Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Useful zsh/datetime things
- X-seq: zsh-users 6681
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Useful zsh/datetime things
- Date: Fri, 10 Oct 2003 02:15:11 +0000
- In-reply-to: <22603.1065722644@xxxxxxx>
- In-reply-to: <20031009181245.GA22161@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <22603.1065722644@xxxxxxx> <1031009172754.ZM10491@xxxxxxxxxxxxxxxxxxxxxxx> <20031009181245.GA22161@xxxxxxxxxxx>
On Oct 9, 7:04pm, Peter Stephenson wrote:
}
} Bart Schaefer wrote:
} > function rfcdate {
} > # Like GNU "date -R"
} > strftime "%a, %e %b %Y %H:%M:%S %z" $EPOCHSECONDS
} > }
}
} Sure the %z shouldn't be %Z? Solaris doesn't like %z.
On Oct 9, 6:12pm, Phil Pennock wrote:
}
} %z is a common extension to strftime(), which gives the off-set
} numerically.
Which is how it's supposed to be formatted for RFC{2,}822 et al., and is
how `date -R` does it. Is there a POSIX way to get the zone hours offset
from UT?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author