Interface IAS4TimestampManager


public interface IAS4TimestampManager
Interface for providing time stamps.
The precision of all the methods in this class is milliseconds, so that it stays compatible to XML serialization. Since version 1.1.0 the return types of the methods changed from Local(Date|Time|DateTime) to Offset(Date|Time|DateTime)
Since:
0.10.0
Author:
Philip Helger
  • Method Details

    • getCurrentDateTime

      @Nonnull OffsetDateTime getCurrentDateTime()
      Returns:
      The current date in time in the current time zone. Never null.
    • getCurrentXMLDateTime

      @Nonnull default com.helger.commons.datetime.XMLOffsetDateTime getCurrentXMLDateTime()
      Returns:
      The current date in time in the current time zone for XML processing. Never null.
    • getCurrentDate

      @Nonnull default LocalDate getCurrentDate()
      Returns:
      The current date in the current time zone. Never null.
      Since:
      0.10.4
    • getCurrentTime

      @Nonnull default OffsetTime getCurrentTime()
      Returns:
      The current time in the current time zone. Never null.
      Since:
      0.10.4
    • createDefaultInstance

      @Nonnull static IAS4TimestampManager createDefaultInstance()