Mondoo Docs

Date and time functions

time MQL resource for querying Core infrastructure with cnquery and cnspec.

Core

Date and time functions

Use MQL in cnspec shell or policy:

time
Min version: 5.15.0

Relationships

Mini Map
Core
1 resources · 0 relationshipsClick to select, expand fields to see properties.

Fields (7)

FieldTypeDescription
day
timeOne day, used for durations
hour
timeOne hour, used for durations
minute
timeOne minute, used for durations
now
timeThe current time on the local system
second
timeOne second, used for durations
today
timeThe current day starting at midnight
tomorrow
timeThe next day starting at midnight