Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Epoch to specific output

by oiskuu (Friar)
on Jan 02, 2014 at 20:04 UTC ( #1069016=note: print w/ replies, xml ) Need Help??


in reply to Epoch to specific output

Using bash you say? If gnu tools are available, the gnu date utility can perform said task:

$ date +%Y%m%d%H%M -u -d @1388679108
(Prints the UTC stamp for given epoch time.)


Comment on Re: Epoch to specific output
Replies are listed 'Best First'.
Re^2: Epoch to specific output
by Anonymous Monk on Jan 02, 2014 at 21:53 UTC
    Not to say that non-GNU versions of date(1) perform any worse:
    % date -ur 1388679108 +%m%d%H%M 01021611
    That syntax ought to work on all of the four major BSDs.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2015-09-01 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (369 votes), past polls