MCPcopy Create free account
hub / github.com/apache/datafusion / format_date

Method format_date

datafusion/spark/src/function/string/format_string.rs:2255–2259  ·  view source on GitHub ↗
(&self, writer: &mut String, date_days: i64)

Source from the content-addressed store, hash-verified

2253 }
2254
2255 fn format_date(&self, writer: &mut String, date_days: i64) -> Result<()> {
2256 // Convert days since epoch to timestamp in nanoseconds
2257 let timestamp_nanos = date_days * 24 * 60 * 60 * 1_000_000_000;
2258 self.format_time(writer, timestamp_nanos, &None)
2259 }
2260
2261 fn format_time_component(
2262 &self,

Callers 1

formatMethod · 0.80

Calls 1

format_timeMethod · 0.80

Tested by

no test coverage detected