Convert Normal Date to Unix Time
Hello, i need some help, i'm creating a script and i need to convert normal date (24/05/07) in unix time, i see some web sites with calculators, but i need to put the code in my shell script. In the first time i thought that i will found that in google jeje, but i only found the inverse, unix time to normal date. Somebody can help me?. Thanks a lot.
|
After a quick google, I found the following page that should point you in the right direction, using perl...
http://www.unixreview.com/documents/s=1344/ur0307g/ |
Hey gbratig, Can you point me to the site where you saw the Epoch to normal date conversion?
|
|
compile this and call it from your script. You'll have to setup a template file, you can probably create it in your script and delete it before the script finishes.
Code:
#include <stdio.h> |
That's perfect!!! thank you very much, but really, thanks :)
|
All times are GMT -5. The time now is 03:17 AM. |