MCPcopy Create free account
hub / github.com/ccusage/ccusage / format_date

Function format_date

rust/crates/ccusage/src/date_utils.rs:223–225  ·  view source on GitHub ↗
(timestamp: TimestampMs, timezone: Option<&str>)

Source from the content-addressed store, hash-verified

221}
222
223pub(crate) fn format_date(timestamp: TimestampMs, timezone: Option<&str>) -> String {
224 format_date_tz(timestamp, parse_tz(timezone).as_ref())
225}
226
227pub(crate) fn format_date_tz(timestamp: TimestampMs, timezone: Option<&JiffTimeZone>) -> String {
228 let Ok(timestamp) = JiffTimestamp::from_millisecond(timestamp.as_millis()) else {

Callers 2

filter_blocks_by_dateFunction · 0.85
statusline_today_sharedFunction · 0.85

Calls 2

format_date_tzFunction · 0.85
parse_tzFunction · 0.85

Tested by

no test coverage detected