... OnValidate
Trigger: Function executed on the application of a leave
Inputs: string p_RequestID,string p_Dept,string p_LeaveFrom,string p_LeaveTill
Outputs: map/collection
Date ...
... to properly convert seconds into total hours, minutes and seconds (taking into account regional settings and without using a date function).
How?
$total_time =intval(intval($total_seconds)/ 3600).":";
$total_time.=str_pad(intval(($total_seconds/60)%60),2,"0",STR_PAD_LEFT).":";
$total_time.=str_pad(intval($total_seconds%60),2,"0",STR_PAD_LEFT);
// ...
Just a quick note as I use this function in various scripts. This adds the 1000th separator comma:
FormatAddCommas(val) {
Result:=val
StringLen, OutputVar, Result
NumLoop ...
The title of this article implies something rather odd and upcoming considering that Sun Microsystems bought MySQL and Oracle bought Sun. But in fact, this is just a quick list of some regular commands ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.