1 Replies - 5571 Views - Last Post: 09 March 2009 - 10:22 PM Rate Topic: -----

#1 vishy_85  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 04-March 09

ADD date and time values

Posted 09 March 2009 - 10:10 PM

hi all , i need to add date and time values according to a specific delay interval
eg :
date = "01-01-09" (date-month-year)
time = "17:15:00" (hours-minutes-seconds)
delay interval = "01:01:00" (days-hours-minutes)
output should be
date = "02-01-09"
time = "18:15:00"
i also need to check for leap year, n need to implement alternate days (30 days for some months n 31 for some ). any idea as to how to proceed ???

Is This A Good Question/Topic? 0
  • +

Replies To: ADD date and time values

#2 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: ADD date and time values

Posted 09 March 2009 - 10:22 PM

Convert your dates to Julian day numbers to do arithmetic on them.

See Julian day
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1