gstime function

double? gstime(
  1. dynamic yearOrDate, [
  2. int? mon,
  3. int? day,
  4. int? hr,
  5. int? minute,
  6. double? sec,
  7. double? msec,
])

Implementation

double? gstime(dynamic yearOrDate,
    [int? mon, int? day, int? hr, int? minute, double? sec, double? msec]) {
  if (yearOrDate is DateTime) {
    final jdayVal = jday(yearOrDate, mon, day, hr, minute, sec, msec);
    if (jdayVal == null) {
      return null;
    }
    return gstimeInternal(jdayVal.toInt());
  }
  return gstimeInternal(yearOrDate);
}