Jump to content
Sign in to follow this  
Fernando Mercês

Convertendo Epoch no Linux (número de segundos desde 1970-01-01 00:00:00 UTC)

Recommended Posts

$ date +'%s'
# Convertendo Epoch para hora atual
$ date -d @1433497577
Fri Jun  5 05:46:17 EDT 2015
# De novo, mas agora usando UTC
$ date -d @1433497577 -u
Fri Jun  5 09:46:17 UTC 2015
# No OS X
$ date -ur 1433497577
Fri Jun  5 09:46:17 UTC 2015
# 18h15 do dia 3 de janeiro de 1980 para Epoch 
$ date -d '1980-01-03 18:15:00' +%s


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...