Module python_comm::prelude[][src]

Expand description

python_comm prelude.

The prelude re-exports most commonly used functions, macros, and traits from this crate.

用法

#[allow(unused_imports)]
use python_comm::prelude::*;

Re-exports

pub use crate::crate_version;
pub use crate::from_py;
pub use crate::raise_error;
pub use crate::to_py;

Structs

Decimal represents a 128 bit representation of a fixed-precision decimal number. The finite set of values of type Decimal are of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.

基于 Aho–Corasick 算法的全文匹配/替换

Traits

The common set of methods for date component.

A generic trait for converting a number to a value.

Trait that contains methods

The common set of methods for time component.

Functions

北京时间, 日期

北京时间, 日期, %Y-%m-%d 格式字符串

北京时间, 日期 + 时间

北京时间, 日期 + 时间, %Y-%m-%d %H:%M:%S 格式字符串

北京时间, 时间戳

北京时间, 时间戳, 精确到毫秒

bjtc_xy 北京时间的各种表达方式之间转换

见 bjtc_df

见 bjtc_df

见 bjtc_df

见 bjtc_df

转换 duration 为 timestamp, 精确到毫秒

见 bjtc_df

见 bjtc_df

见 bjtc_df

见 bjtc_df

见 bjtc_df

见 bjtc_df

见 bjtc_df

见 bjtc_df

见 bjtc_df

见 bjtc_dn

转换 timestamp 为 duration

见 bjtc_df