feat: add time conversion scripts

This commit is contained in:
Swarsel 2024-12-15 14:59:08 +01:00
parent 02adc13792
commit 86de91c6e3
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
5 changed files with 66 additions and 0 deletions

9
pkgs/ts2t/default.nix Normal file
View file

@ -0,0 +1,9 @@
{ writeShellApplication }:
writeShellApplication {
name = "ts2t";
runtimeInputs = [ ];
text = ''
date -d @"$1" 2>/dev/null || date -r "$1"
'';
}