Skip to main content

normalize_temporal

Function normalize_temporal 

Source
pub fn normalize_temporal<'a>(
    text: &'a str,
    ref_time: DateTime<Utc>,
    config: &TemporalConfig,
) -> Cow<'a, str>
Expand description

相対日時表現を正規化する。

§引数

  • text: 入力テキスト。
  • ref_time: 基準日時 (リクエスト受付時刻など)。
  • config: 相対日時設定。