time method

Time time(
  1. int year,
  2. int month,
  3. int day, {
  4. String timezone = 'Z',
  5. int? hour,
  6. int? minute,
  7. num? second,
})

Create a time object for a specific time.

Implementation

Time time(int year, int month, int day,
    {String timezone = 'Z', int? hour, int? minute, num? second}) {
  if (second != null) {
    return Time(Args([year, month, day, hour, minute, second, timezone]));
  } else {
    return Time(Args([year, month, day, timezone]));
  }
}