Class DateTimeUtilities
Object
DateTimeUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDatetime
(LocalDateTime posttime) Formats date and time.static String
getFullDatetime
(LocalDateTime posttime) Formats date and time.static LocalDateTime
-
Constructor Details
-
DateTimeUtilities
public DateTimeUtilities()
-
-
Method Details
-
getLastSunday
-
getDatetime
Formats date and time.- Parameters:
posttime
- the date and time to format- Returns:
- Something like "2024-02-12 13:14:15".
-
getFullDatetime
Formats date and time.- Parameters:
posttime
- the date and time to format- Returns:
- Something like "Monday, 12 February 2024 13:14:15".
-