zsh-users
 help / color / mirror / code / Atom feed
* how to get system time
@ 2004-07-11 12:56 Andy Spiegl
  2004-07-11 16:30 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Spiegl @ 2004-07-11 12:56 UTC (permalink / raw)
  To: ZSH User List

Hi,

is there another (easier and resource friendlier) way to get the system
time than this:
  now=`date +%s`

Thanks,
 Andy.

-- 
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 I believe five out of four people have trouble with fractions.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to get system time
  2004-07-11 12:56 how to get system time Andy Spiegl
@ 2004-07-11 16:30 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2004-07-11 16:30 UTC (permalink / raw)
  To: ZSH User List


Perhaps

    zmodload -i zsh/datetime && now=$EPOCHSECONDS || now=$(date +%s)

?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-11 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-11 12:56 how to get system time Andy Spiegl
2004-07-11 16:30 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).