Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Converting time with EPOCHSECONDS and zmodload zsh/datetime
- X-seq: zsh-users 16274
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Converting time with EPOCHSECONDS and zmodload zsh/datetime
- Date: Mon, 22 Aug 2011 01:30:24 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=PMU6thFHl28ene+14wZe9CeafvOmNeXC8ilH44gEZlo=; b=gyvklghWLtbuZuS0NS7GLEDYozoS/ZGAHhIijb7PAwrjahd+dNpAGey0nKDp+lKRnc 66UL60DoP0OM+3wluuMcoBFvGkbEifkV2So5xIdkaP+hPDc+/oWS1R455GzWY94SWeEF ifvmaXzoD5Vg1L3XutqWtASKUmQViv5QRC2xM=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I'm just learning 'zmodload zsh/datetime'
I know I can use
strftime %Y-%m-%d_%H.%M.%S $EPOCHSECONDS
to get a time format like 2011-08-21_14.45.38
If I know that something it going to happen in 22:05:03 (22hrs 5
minutes 3 seconds) from now, how do I convert that to a specific time
like `strftime %Y-%m-%d_%H.%M.%S`?
TjL
Messages sorted by:
Reverse Date,
Date,
Thread,
Author