TimeOfDay.fromDateTime constructor

TimeOfDay.fromDateTime(
  1. DateTime time
)

Creates a TimeOfDay based on the given time.

Implementation

TimeOfDay.fromDateTime(DateTime time) : hour = time.hour, minute = time.minute, second = time.second;