formatTrueSolarTime static method

String formatTrueSolarTime(
  1. DateTime trueSolarTime
)

格式化真太阳时为字符串

Implementation

static String formatTrueSolarTime(DateTime trueSolarTime) {
  return "${trueSolarTime.hour.toString().padLeft(2, '0')}:"
      "${trueSolarTime.minute.toString().padLeft(2, '0')}:"
      "${trueSolarTime.second.toString().padLeft(2, '0')}";
}