Article 6M510 [SOLVED] how do i convert Month to Seconds and Days are based on Month

[SOLVED] how do i convert Month to Seconds and Days are based on Month

by
atjurhs
from LinuxQuestions.org on (#6M510)
hi,

i'm writing an AWK script in which i need to convert one of my data field to total seconds. the data field is written in the file as
Code: `day-month-2024 hour:minutes:seconds
for example '17-apr-2024 08:58:45.6789i know how to convert a single day, the year, the hour, and the minutes. what i don't know how to convert to seconds is the month because that changes the number of Days.

thanks for your help!
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments