Home › Forums › Tech Support › date math
- This topic has 12 replies, 6 voices, and was last updated 6 years, 4 months ago by
Orn.
-
AuthorPosts
-
January 11, 2017 at 9:54 am #67962
linuxgnuru
Participantlet’s say I have a text file with just outputs from the date command. Anyone know how to take that and calculate hours?
i.e.Code:Mon Dec 5 15:20:15 EAT 2016
Tue Dec 6 01:20:34 EAT 2016Tue Dec 6 09:44:15 EAT 2016
Tue Dec 6 12:41:34 EAT 2016so; how many hours wold that be? and better still; how can one calculate that with a script?
January 12, 2017 at 10:38 am #77135Frojoe
KeymasterConvert the timestamps to unix time (which is just seconds since Jan 1 1970), and then do whatever math you want. You’ll have the results in seconds, which you can convert to hours, parsecs, centons, marklars or whatever.
January 12, 2017 at 2:27 pm #77138__eMpTy__
ParticipantFrojoe wrote:Convert the timestamps to unix time (which is just seconds since Jan 1 1970), and then do whatever math you want. You’ll have the results in seconds, which you can convert to hours, PARASECS, centons, marklars or whatever.http://i.imgur.com/9jeBDaV.jpg
src: https://en.wikipedia.org/wiki/ParsecJanuary 12, 2017 at 3:12 pm #77139Frojoe
Keymaster__eMpTy__ wrote:Frojoe wrote:Convert the timestamps to unix time (which is just seconds since Jan 1 1970), and then do whatever math you want. You’ll have the results in seconds, which you can convert to hours, PARASECS, centons, marklars or whatever.http://i.imgur.com/9jeBDaV.jpg
src: https://en.wikipedia.org/wiki/ParsecJanuary 12, 2017 at 7:57 pm #77142thelionroars
MemberYou’re both wrong, parasex is having sex in a wheelchair
January 17, 2017 at 12:13 am #77160strider
ParticipantA probability of 2 chairs by more than 80%.
January 17, 2017 at 6:47 am #77173Orn
ParticipantToo bad coz all you get is a frozen potato
January 17, 2017 at 9:30 pm #77211strider
ParticipantI like french fries with ketchup.
January 17, 2017 at 9:41 pm #77215__eMpTy__
ParticipantOrn wrote:Too bad coz all you get is a frozen potatostrider wrote:I like french fries with ketchup.Frozen_Potato + Ketchup !== French_Fries
…unless you ask a fried frenchman.
January 17, 2017 at 10:04 pm #77216linuxgnuru
ParticipantQuote:Frozen_Potato + Ketchup !== French_Friesbut it does == hash browns
January 17, 2017 at 10:57 pm #77219Orn
Participantlinuxgnuru wrote:but it does == hash brownsWut ar doez?
January 18, 2017 at 3:30 am #77236linuxgnuru
ParticipantJanuary 18, 2017 at 4:55 am #77237Orn
Participantso potato spaghetti ?
-
AuthorPosts
- You must be logged in to reply to this topic.