dot

packages and services management
Log | Files | Refs | README

commit fa770b143d669eaaa82882061d7d21e591da74c4
parent a90afa8545290200a9f45c88b68b2dbeef8ae4cb
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 20 Nov 2017 02:54:25 +0100

handle rfc3339 fractionnal seconds

Diffstat:
Mbin/twtsh | 3++-
Mdot/bashrc | 2--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/bin/twtsh b/bin/twtsh @@ -65,7 +65,8 @@ function rfc3339(str) { hrs = substr(str, 12, 2); min = substr(str, 15, 2); sec = substr(str, 18, 2); - off = substr(str, 20, 1) == "Z" ? 0 : substr(str, 20, 3); + sub("^[^ ]+\\.[0-9]+", "", str); + off = substr(str, 1, 1) == "Z" ? 0 : substr(str, 1, 3); return to_sec(yrs, mth, day, hrs, min, sec) - off * 3600; }' diff --git a/dot/bashrc b/dot/bashrc @@ -12,8 +12,6 @@ alias s='git status -s --branch' alias c='cd "$(find . -maxdepth 4 -name .git -prune -o -type d | iomenu)"' alias f='f=$(io-find)' alias l='ls -Alp' -alias vi='io vi' -alias mplayer='io mplayer' day() {