For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Seconds Since Epoch to Local Time

Seconds Since Epoch to Local Time

Created by dave. Last edited by dave, 23 days ago. Viewed 52 times. #1
[edit] [rdf]
labels
attachments
(2023-05-17)

Seconds Since Epoch to Local Time

#!/bin/bash
if [ -z "$1" ]; then 
  exit
fi
date  --date=@$1 '+%Y-%m-%d_%H:%M:%S'
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt