The example from the docs:
http://www.4d.com/docs/CMU/CMU00178.HTM can be
changed slightly to do this...
$vhNow:=Current time
ALERT("Current hour is: "+String($vhNow\3600))
ALERT("Current minute is: "+String(($vhNow\60)%60))
ALERT("Current second is: "+String($vhNow%60))
Could be rewritten to be:
$vhNow:=Current time
$vHour := $vhNow\3600
$vMinute := ($vhNow\60)%60
$vSecond := ($vhNow%60)
Hope that helps,
Tim
-----Original Message-----
From:
4DBasics@... [mailto:
4DBasics@...] On Behalf Of Jamie
Byrne
Sent: Tuesday, June 09, 2009 8:41 AM
To:
4DBasics@...
Subject: 4D Newbie, time question
Hello,
Bit of a 4D Newbie.
Suggest my code was
Case Of
: (Form event=On Load)
va:=Current Time
End Case
How would I take the current hour, minute and seconds and place into 3
different variables? This possible?
Thanks,
Jamie!
**********************************************************************
4D Basics hosted by 4D, Inc.
http://www.4D.com/Register for 4D Summit 2009 Today
Early Bird Pricing Ends August 28th -
http://www.4D.com/summitTo Unsubscribe: mailto:
4DBasics-off@...
**********************************************************************
**********************************************************************
4D Basics hosted by 4D, Inc.
http://www.4D.com/Register for 4D Summit 2009 Today
Early Bird Pricing Ends August 28th -
http://www.4D.com/summitTo Unsubscribe: mailto:
4DBasics-off@...
**********************************************************************