ElapTime Function |
Namespace: XSharp.Core
FUNCTION ElapTime( cStartTime AS STRING, cEndTime AS STRING ) AS STRING
public static string ElapTime( string cStartTime, string cEndTime )
1? ElapTime("03:02:01", "09:09:09") // 06:07:08 2? ElapTime("09:05:12", "23:10:07") // 14:04:55 3// Time elapsed from 11pm to 5am 4? ElapTime("23:00:00", "05:00:00") // 06:00:00 5// Time elapsed from 5am to 11pm 6? ElapTime("05:00:00", "23:00:00") // 18:00:00 7? ElapTime(Time(), "20:01:03") 8// Depends on current time