> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# time

Time-related functions and constants.

## Members

* [hour](#hour)
* [microsecond](#microsecond)
* [millisecond](#millisecond)
* [minute](#minute)
* [nanosecond](#nanosecond)
* [second](#second)
* [from_timestamp](#from_timestamp)
* [is_valid_timezone](#is_valid_timezone)
* [now](#now)
* [parse_duration](#parse_duration)
* [parse_time](#parse_time)
* [time](#time)

## hour

A duration representing one hour.

## microsecond

A duration representing one microsecond.

## millisecond

A duration representing one millisecond.

## minute

A duration representing one minute.

## nanosecond

A duration representing one nanosecond.

## second

A duration representing one second.

## from_timestamp

Converts the given Unix time corresponding to the number of seconds and (optionally) nanoseconds since January 1, 1970 UTC into a time object.

Seconds since Unix epoch

Nanoseconds component (optional)

The corresponding time value

## is_valid_timezone

Reports whether loc is a valid time zone name.

Time zone name to validate

True if the time zone name is valid

## now

Returns the current time. In workflow contexts, returns a deterministic time.

The current time

## parse_duration

Parses a duration string (e.g. "1h30m", "300ms").

Duration string to parse

The parsed duration

## parse_time

Parses the given time string using a specific time format and location. Defaults to RFC3339 format and UTC location.

Time string to parse

Time format string (default: RFC3339)

Time zone name (default: UTC)

The parsed time value

## time

Returns the time corresponding to the given date and time components in the given location. All parameters are optional.

Year

Month (1-12)

Day of the month

Hour (0-23)

Minute (0-59)

Second (0-59)

Nanosecond (0-999999999)

Time zone name (default: UTC)

The constructed time value