StaticformatFormats a timestamp into a human-readable date string. Supports multiple output formats and handles both Unix timestamps and ISO date strings.
Unix timestamp (seconds) or ISO date string
Optionalstyle: "full" | "date" | "unix" = "full"Format style
Formatted date string
StaticformatFormats a timestamp into a human-readable date string. Always returns the full format (YYYY-MM-DD HH:mm:ss) in UTC.
Unix timestamp (seconds) or ISO date string
Formatted date string in "YYYY-MM-DD HH:mm:ss" format (UTC)
StaticgetStaticget24StaticgetGets the Unix timestamp from a specified number of days ago. Supports fractional days for more precise time ranges.
Number of days to go back (can be fractional)
Unix timestamp from specified days ago
Utility class for handling date and timestamp formatting and calculations. All timestamps are handled in UTC to ensure consistency across different timezones.