You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The time object represents a time value and includes properties and functions to extract numbers, and functions to convert to a string representation. Note that the local time value and formatting output is based on the timezone and regional settings of the server or agent where the expression is evaluated.

NameDescriptionReturn TypeUsage Examples
Format(string format)Formats a time value using standard or custom .Net formatting stringsString$Server.Now.Format("hh:mm")$"23:55" (given the date time "31/12/2000 23:55:333")
HourThe hour component of the timeInteger

HoursAgoThe number of hours which have passed since the timeInteger


MillisecondThe millisecond component of the timeInteger


MinuteThe minute component of the timeInteger


MinutesAgoThe number of minutes which have passed since the timeInteger


SecondThe second component of the timeInteger


SecondsAgoThe number of seconds which have passed since the timeInteger


ToLongTimeString()The time represented in long time format. For the en-AU culture, the standard long time pattern is "h:mm:ss tt".String


ToShortTimeString()The time represented in short time format. For the en-AU culture, the standard short time pattern is "h:mm tt"String







  • No labels