MCPcopy Create free account
hub / github.com/apache/arrow-rs / timestamp

Method timestamp

parquet/src/basic.rs:324–329  ·  view source on GitHub ↗

Create a [`LogicalType::Timestamp`] variant with the given `is_adjusted_to_u_t_c` and `unit`

(is_adjusted_to_u_t_c: bool, unit: TimeUnit)

Source from the content-addressed store, hash-verified

322
323 /// Create a [`LogicalType::Timestamp`] variant with the given `is_adjusted_to_u_t_c` and `unit`
324 pub fn timestamp(is_adjusted_to_u_t_c: bool, unit: TimeUnit) -> Self {
325 Self::Timestamp(TimestampType {
326 is_adjusted_to_u_t_c,
327 unit,
328 })
329 }
330
331 /// Create a [`LogicalType::Variant`] variant with the given `specification_version`
332 pub fn variant(specification_version: Option<i8>) -> Self {

Callers 8

check_date_conversionFunction · 0.80
decodeMethod · 0.80
test_sql.pyFile · 0.80
test_timestamp_pythonFunction · 0.80
test_timestamp_tz_pythonFunction · 0.80
make_valueMethod · 0.80
from_datetimeMethod · 0.80

Calls 1

TimestampClass · 0.85

Tested by 2

test_timestamp_pythonFunction · 0.64
test_timestamp_tz_pythonFunction · 0.64