time_ adding extra time

BlitzMax Forums/BlitzMax Programming/time_ adding extra time

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi Guys

Its been sometime since i fired up blitzmax, Im having a problem updating a time buffer

Local time:Byte[256],buff:Byte[256]
				
time_(time)
strftime_( buff,256,"%H:%M:%S - %d %b %Y",localtime_( time ));
				
Print "real time: "+CurrentTime()
Print "modifyed time: "+String.FromCString(buff)


I use the byte array time to store the time returned from calling time_, What i want to do is update the time array to contain a new time in the future by adding mins or hours to the array.

any help would be great, sorry but im having a brain dead day.

thanks
kev