CodeQL library for C/C++
codeql/cpp-all 2.0.2 (changelog, source)
Search

Primitive type date

The primitive type of dates (and optionally times).

Predicates

daysTo

Returns the number of days between the receiver and the argument - the result is positive when the argument is chronologically ahead of the receiver, and negative when the argument is chronologically behind the receiver

getDay

Returns the day of the month of the receiver (1 through 31)

getHours

Returns the hours component of the receiver (0 through 23)

getMinutes

Returns the minutes component of the receiver (0 through 59)

getMonth

Returns the month component of the receiver (“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, or “December”)

getSeconds

Returns the seconds component of the receiver (0 through 60)

getYear

Returns the year component of the receiver (for example 2017)

toISO

Returns a string representation of the receiver (for example “2017-08-25 12:29:39”)

toString

Returns a string representation of the receiver (for example “12 January 2017 05:45”)