HELP in Timestamp Difference
Posted: Fri Jun 30, 2006 8:42 am
Someone can help me making a script to:
1 - Add 5 hours and 10 minutes to actual date/time (that is the diference for my time and the time of the webserver),
2 - Calculate the diference between 2 dates last login and now,
3 - The final step put the diference time in a variable and echo "Your Last Login time was about 5 hours ago", "Your Last Login time was about 5 minutes ago" and "Your Last Login time was about 5 weeks ago"
My webserver is Windows
Thanks in advance
1 - Add 5 hours and 10 minutes to actual date/time (that is the diference for my time and the time of the webserver),
2 - Calculate the diference between 2 dates last login and now,
3 - The final step put the diference time in a variable and echo "Your Last Login time was about 5 hours ago", "Your Last Login time was about 5 minutes ago" and "Your Last Login time was about 5 weeks ago"
My webserver is Windows
Thanks in advance