You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Health::Types::DateTimeRange

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing DateTimeRange as input to an Aws::Client method, you can use a vanilla Hash:

{
  from: Time.now,
  to: Time.now,
}

A range of dates and times that is used by the EventFilter and EntityFilter objects. If from is set and to is set: match items where the timestamp (startTime, endTime, or lastUpdatedTime) is between from and to inclusive. If from is set and to is not set: match items where the timestamp value is equal to or after from. If from is not set and to is set: match items where the timestamp value is equal to or before to.

Instance Attribute Summary collapse

Instance Attribute Details

#fromTime

The starting date and time of a time range.

Returns:

  • (Time)

    The starting date and time of a time range.

#toTime

The ending date and time of a time range.

Returns:

  • (Time)

    The ending date and time of a time range.