Returns the time value of the argument.
CTime( x ) CTime( HH, MM, SS )
X | * a (decimal) number with each whole number being midnight and therefore fractionally calculating the time of day: 0.5 would be noon, 0.6 would be 2:24pm. * a string specifying time of day, such as "12:41:22 p.m." * or: a datetime value * HH - a whole number specifying hour of day * MM - a whole number specifying how many minutes of the time's hour have passed * SS - a whole number specifying how many seconds of the time's minute have passed. |
---|
Time value
CTime(20,23,22) // 8:23:22 p.m. CTime(-0.4) // 2:24 p.m. CTime("12:44:12 p.m.") // 12:44:12 p.m. CTime(dt) // extracts the time of the datetime.