TimeFormatter
The TimeFormatter
object handles temporal values and provides easy access to custom formats for display or further use
Author
N7ghtm4r3 - Tecknobit
Since
1.0.6
Properties
AMERICAN_DATE_PATTERN
the date pattern used in the american zone
COMPLETE_AMERICAN_DATE_PATTERN
the complete date pattern used in the american zone
COMPLETE_EUROPEAN_DATE_PATTERN
the complete date pattern used in the european zone
COMPLETE_ISO_8601_DATE_PATTERN
the complete date pattern standardised from the ISO 8601
COMPLETE_TIME_PATTERN
the complete time pattern with hours (24 format), minutes, seconds and milliseconds
defaultPattern
the default pattern used by the TimeFormatter if no custom one is specified
EUROPEAN_DATE_PATTERN
the date pattern used in the european zone
H12_HOURS_MINUTES_PATTERN
the pattern with hours (12 format) and minutes
H12_HOURS_MINUTES_SECONDS_PATTERN
the pattern with hours (12 format), minutes and seconds
H24_HOURS_MINUTES_PATTERN
the pattern with hours (24 format) and minutes
H24_HOURS_MINUTES_SECONDS_PATTERN
the pattern with hours (24 format), minutes and seconds
invalidTimeDefValue
the default value returned when an error occurred during the formatting
invalidTimeStringDefValue
the default value returned when an error occurred during the formatting of a String value
ISO_8601_DATE_PATTERN
the date pattern standardised from the ISO 8601
MILLIS_GAP_CONVERSION_RATE
conversion rate from millis to other time format
SEXAGESIMAL_CONVERSION_RATE
rate for a sexagesimal system conversion
TIME_PATTERN_REGEX
regex pattern used from the toTimestamp method to distinguish what proper method use (one from dateAndTimeParsing or dateParsing) to correctly format the pattern parameter passed as argument
timePattern
the regex validator for the TIME_PATTERN_REGEX
Functions
Method used to count the centuries passed from the Long value to the current timestamp
Method used to get the current timestamp value in milliseconds
Method used to format a String value which contains both date and time related values
Method used to format a String value which contains just date related values
Method used to count the days passed from the Long value to the current timestamp
Method used to format the current timestamp as string
Method used to count the hours passed from the Long value to the current timestamp
Method used to count the milliseconds passed from the Long value to the current timestamp
Method used to count the minutes passed from the Long value to the current timestamp
Method used to count the months passed from the Long value to the current timestamp
Method used to count the nanoseconds passed from the Long value to the current timestamp
Method used to count the quarters passed from the Long value to the current timestamp
Method used to count the seconds passed from the Long value to the current timestamp
Method used to transform a Long value into the corresponding LocalDate
Method used to transform a Long value into the corresponding LocalDateTime
Method used to count the weeks passed from the Long value to the current timestamp
Method used to count the years passed from the Long value to the current timestamp