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

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

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

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

      static @NonNull IAS4TimestampManager createDefaultInstance()