Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Useful zsh/datetime things



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