d: skip leading zeros
This commit is contained in:
parent
1ec9ce3753
commit
0b1970ee4b
@ -240,7 +240,7 @@ in {
|
||||
};
|
||||
initExtra = ''
|
||||
t() { git rev-parse --show-toplevel; }
|
||||
d() { date --utc --date=@$(echo "$1" | sed -E 's/^[^0-9]*(.{10}).*/\1/') +"%F %T"; }
|
||||
d() { date --utc --date=@$(echo "$1" | sed -E 's/^[^1-9]*([0-9]{10}).*/\1/') +"%F %T"; }
|
||||
source ${./gg.sh}
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user