Skip to content

Instantly share code, notes, and snippets.

@bonyiii
Created August 24, 2011 06:43
Show Gist options
  • Select an option

  • Save bonyiii/1167436 to your computer and use it in GitHub Desktop.

Select an option

Save bonyiii/1167436 to your computer and use it in GitHub Desktop.
dátum időbélyeggé sé vissza

To timestamp

date -ud "2011-05-05" +%s

To time from timestamp

date -d "@1304553600"

RUBY

Időbélyegből:

Time.at(1293840000)

Dátumból időbélyeg

Time.utc(2011,5,1).to_i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment