Something about DataStage, DataStage Administration, Job Designing,Developing, DataStage troubleshooting, DataStage Installation & Configuration, ETL, DataWareHousing, DB2, Teradata, Oracle and Scripting.
Showing posts with label timestamp. Show all posts
Showing posts with label timestamp. Show all posts
Sunday, November 09, 2014
TimeStamp Comparison in Linux
Comparing Date, Time or TimeStamp is tricky thing in Linux. This is how you can achieve this -
By converting date to Seconds
$ date +%s
the above command will current time in seconds since 1970-01-01 00:00:00 UTC
if you have time in string form you can use below command to convert them like -
Subscribe to:
Posts
(
Atom
)