Class NowComponentImpl

java.lang.Object
io.github.seenings.time.component.impl.NowComponentImpl
All Implemented Interfaces:
NowComponent

public class NowComponentImpl extends Object implements NowComponent
当前时间组件
  • Constructor Details

    • NowComponentImpl

      public NowComponentImpl()
  • Method Details

    • nowToBasicIsoDate

      public String nowToBasicIsoDate()
      当前时间转换为ISO-8601(yyyyMMdd)字符串格式日期
      Specified by:
      nowToBasicIsoDate in interface NowComponent
      Returns:
      ISO-8601(yyyyMMdd)字符串格式日期
    • nowToSeventeenFormatDate

      public String nowToSeventeenFormatDate()
      当前时间转十七位格式日期时间
      Specified by:
      nowToSeventeenFormatDate in interface NowComponent
      Returns:
      十七位格式日期时间