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

Function format_naive_date

rust/crates/ccusage/src/date_utils.rs:245–247  ·  view source on GitHub ↗
(date: IsoDate)

Source from the content-addressed store, hash-verified

243}
244
245pub(crate) fn format_naive_date(date: IsoDate) -> String {
246 format_date_parts(date.year, date.month, date.day)
247}
248
249pub(crate) fn format_date_parts(year: i32, month: u32, day: u32) -> String {
250 format!("{year:04}-{month:02}-{day:02}")

Callers 1

week_startFunction · 0.85

Calls 1

format_date_partsFunction · 0.85

Tested by

no test coverage detected