How to find out future date | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

How to find out future date

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-28-2005
purveshvora purveshvora is offline
Registered User
 
Join Date: Aug 2005
Last Activity: 26 June 2006, 4:59 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
How to find out future date

Hi,

I am writing shell script in borne shell.

I want to know date-time after 8 hours.

Can you please guide me how can I gate datetime after 8 hours?

Regards,
Purvesh
Sponsored Links
    #2  
Old 09-28-2005
vino's Avatar
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
 
Join Date: Feb 2005
Last Activity: 9 April 2013, 8:19 AM EDT
Location: Sydney, Down Under
Posts: 2,847
Thanks: 0
Thanked 12 Times in 12 Posts
Look at datecalc
Sponsored Links
    #3  
Old 06-03-2009
alanp alanp is offline
Registered User
 
Join Date: May 2009
Last Activity: 3 June 2009, 1:35 AM EDT
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
date calculation

date -d "8 hours" will give you current date/time in 8 hours
date -d "8 days" will give you current date/time in 8 days
date -d "8 weeks" will give you current date/time in 8 weeks
and so on

use a "-" minus, to get post date/time.

You can use multiples such as "8 days 5 hours"
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ls -ltr for a future date/time stamp file reldb UNIX for Dummies Questions & Answers 3 12-24-2010 12:15 AM
How to find a date which is 7 days past when given current date ladtony Shell Programming and Scripting 17 04-09-2009 04:06 PM
Can I know find syntax to find given date files bache_gowda Shell Programming and Scripting 3 03-26-2008 06:37 AM
date issue-find prevoius date in a patricular format bsandeep_80 UNIX for Advanced & Expert Users 3 11-15-2007 07:42 PM
How to find Previous date and Coming date arunava_maity UNIX for Dummies Questions & Answers 2 05-24-2001 11:41 AM



All times are GMT -4. The time now is 10:37 AM.