+1 888 340 6572 



Post new topic Reply to topic 
Date & time calculation and result in a string   [ ]
Author Message
#1 posted 06 Mar 2012 

Status: Offline
Posts: 962
Thanks Received: 173 times
Thanks Given: 548 times
Joined: 23 Nov 2010
Hello

I'm lost in the date & time calculation. Any help appreciated

I want to add a time value to a time variable

Ctime = 235900 // 23:59:00
Cscale = 175 // 175 seconds 1 minute: 55sec

Ctime = Ctime + Cscale C time should equal 0000155 + 1 day

- How do we calculate date and time to get a value representing both
- How can I format the ending date and time string like (YYYYMMDD HH:MM:SS)

Any help appreciated

Martin


#2 posted 06 Mar 2012 
User avatar

Status: Offline
Posts: 4938
Thanks Received: 1261 times
Thanks Given: 794 times
Joined: 29 Aug 2006
arjfca wrote:
Hello

I'm lost in the date & time calculation. Any help appreciated

see post #3
viewtopic.php?f=1&t=9135&p=43233


Quote:
I want to add a time value to a time variable

Ctime = 235900 // 23:59:00
Cscale = 175 // 175 seconds 1 minute: 55sec

Ctime = Ctime + Cscale C time should equal 0000155 + 1 day

- How do we calculate date and time to get a value representing both


Quote:
- How can I format the ending date and time string like (YYYYMMDD HH:MM:SS)

Any help appreciated

Martin


look up

FormatDate



For this message the author TJ has received thanks:
arjfca



Post new topic Reply to topic