Time.fromDateTime constructor

Time.fromDateTime(
  1. DateTime dateTime
)
Initializes a new instance of Time. The DateTime to extract the time part of.

Implementation

Time.fromDateTime(DateTime dateTime) {
  this.Hours = dateTime.hour;
  this.Minutes = dateTime.minute;
  this.Seconds = dateTime.second;
}