Article 59NJC Function for conversion of GMT to Unix epoch

Function for conversion of GMT to Unix epoch

by
linxbee
from LinuxQuestions.org on (#59NJC)
Hi,
Is there any standard portable function to convert time given in below format to epoch since 1900

Code: Oct 8 15:04:56 2020 GMTcurrently i am using below command
Code: date -d "Oct 8 15:04:56 2020 GMT" +%sto convert to epoch

I have looked at the Code: time.h about the various time functions available there but none seems to satisfy my requirement.

Asking here hoping that some one might have done it already.

Thanks,latest?d=yIl2AUoC8zA latest?i=vQmR6Nob-qs:9rH6ASY5S8o:F7zBnMy latest?i=vQmR6Nob-qs:9rH6ASY5S8o:V_sGLiP latest?d=qj6IDK7rITs latest?i=vQmR6Nob-qs:9rH6ASY5S8o:gIN9vFwvQmR6Nob-qs
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