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

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.

Traits

Datelike

The common set of methods for date component.

FromPrimitive

A generic trait for converting a number to a value.

ObjectProtocol

Trait that contains methods

Timelike

The common set of methods for time component.

Functions

bj_date

北京时间, 日期

bj_dates

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

bj_time

北京时间, 日期 + 时间

bj_times

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

bj_timestamp

北京时间, 时间戳

bj_timestamp_millis

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

bjtc_df

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

bjtc_dn

见 bjtc_df

bjtc_ds

见 bjtc_df

bjtc_dt

见 bjtc_df

bjtc_fd

见 bjtc_df

bjtc_from_duration

转换 duration 为 timestamp, 精确到毫秒

bjtc_fs

见 bjtc_df

bjtc_ft

见 bjtc_df

bjtc_nd

见 bjtc_df

bjtc_ns

见 bjtc_df

bjtc_nt

见 bjtc_df

bjtc_sd

见 bjtc_df

bjtc_st

见 bjtc_df

bjtc_td

见 bjtc_df

bjtc_tf

见 bjtc_df

bjtc_tn

见 bjtc_dn

bjtc_to_duration

转换 timestamp 为 duration

bjtc_ts

见 bjtc_df