LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   convert date time format given in string (https://www.linuxquestions.org/questions/programming-9/convert-date-time-format-given-in-string-275944/)

suchi_s 01-09-2005 11:53 PM

convert date time format given in string
 
function in awk or shell script to convert the time in gmt or isd

itsme86 01-10-2005 12:10 AM

Convert the time from what format to what format?

suchi_s 01-10-2005 12:12 AM

date and time given in a string convert into the date time stamp since Epoch

tutwabee 01-10-2005 12:42 AM

Or you could call the date command multiple times with different parameters to call for the time in gmt.

rhoekstra 01-10-2005 01:01 AM

like
Code:

date --date="Mon Jan 10 08:00:20 CET 2005" +"%s"
gives 1105340420

suchi_s 01-10-2005 04:03 AM

how to use mktime in awk

rhoekstra 01-10-2005 04:06 AM

Don't know


All times are GMT -5. The time now is 04:04 AM.