Computing.Net > Forums > Unix > Date To Second Convert Vice Versa

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Date To Second Convert Vice Versa

Reply to Message Icon

Name: Puguh DK
Date: July 8, 2003 at 00:20:04 Pacific
OS: Unix
CPU/Ram: 256
Comment:

Can I convert current date to second, and sum it with 10800 (seconds for 1 week) and convert again the result to date to get the actual date in next week (7 days forward from current date) ?



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: July 8, 2003 at 06:30:14 Pacific
Reply:

There are 604800 seconds in a week. The shell does not allow for easy date manipulation although it's been addressed a few times here. Have a look at the answer proposed by WilliamRobertson

http://www.computing.net/unix/wwwboard/forum/5223.html


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Date To Second Convert Vice Versa

Convert date to julian date - shell www.computing.net/answers/unix/convert-date-to-julian-date-shell/4040.html

ksh yyddd (julian date) to yyyymmdd www.computing.net/answers/unix/ksh-yyddd-julian-date-to-yyyymmdd/6471.html

help in inx please converting centi www.computing.net/answers/unix/help-in-inx-please-converting-centi/8118.html