Skip to main content

Date.to_date_time

to_date_timetime_of_dayzone

Group: Conversions
Aliases: date to time

Documentation

Combine this date with time of day to create a point in time.

Arguments

  • time_of_day: The time to combine with the date to create a time.
  • zone: The time-zone in which to create the time.

Examples

Convert this date to midnight UTC time.

      from Standard.Base import Date, Time_Of_Day, Time_Zone

example_to_time = Date.new 2020 2 3 . to_date_time Time_Of_Day.new Time_Zone.utc