Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also orlearn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also.Learn more about diff comparisons here.
base repository:uutils/parse_datetime
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base:70d3e53
Choose a base ref
Loading
...
head repository:uutils/parse_datetime
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare:bed2d16
Choose a head ref
Loading
  • 15commits
  • 11files changed
  • 4contributors

Commits on Jun 3, 2023

  1. add datetime parser

    Add a relaxed datetime parser. This datetime parser functions by using `chrono`sown parsing utilities and a try/succeed approach to parsing.This implementation of the datetime parser has some drawbacks and somepositives. On the positive side:- it was easy to implement- it is easy to add more datetime formats toIn order to add additionally supported formats, a developer can add therequired format string to the `format` mod in `parse_datetime.rs`, andthen add it as a potential format to the relevant `fmts` vec.On the negative:- It is not easily customiseable beyond the supported `chrono` parsing  formats. E.g., `chrono` does not currently support parsing offsets  without trailing zeros. `from_str("UTC+1")` should return a valid response  but `chrono` fails to parse this.- Because it is an attempt driven parser, it is likely not that  performant. I have not done any performance testing as part of thischange, but I would expect a custom parser to perform much better.
    @Benjscho
    Benjscho committedJun 3, 2023
    Configuration menu
    Copy the full SHA
    e53aabdView commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Fixes for comments

    @Benjscho
    Benjscho committedJun 5, 2023
    Configuration menu
    Copy the full SHA
    c177117View commit details
    Browse the repository at this point in the history
  2. typo fix

    @Benjscho
    Benjscho committedJun 5, 2023
    Configuration menu
    Copy the full SHA
    8d797fcView commit details
    Browse the repository at this point in the history
  3. Update src/parse_datetime.rs

    Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
    @Benjscho@sylvestre
    Benjscho andsylvestre authoredJun 5, 2023
    Configuration menu
    Copy the full SHA
    29e7a5cView commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. Update README

    Update the README and add a test module to parse_datetime for anyexamples presented in the README.
    @Benjscho
    Benjscho committedJun 6, 2023
    Configuration menu
    Copy the full SHA
    bc33770View commit details
    Browse the repository at this point in the history
  2. cargo fmt

    @Benjscho
    Benjscho committedJun 6, 2023
    Configuration menu
    Copy the full SHA
    7ee33d1View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Merge pull request#12from Benjscho/main

    add datetime parser
    @sylvestre
    sylvestre authoredJun 7, 2023
    Configuration menu
    Copy the full SHA
    e503de7View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc508c4View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    22bdd8fView commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    80f8fdfView commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Merge pull request#21from sylvestre/fuzz

    Also fuzz fuzz_parse_datetime_from_str for a minute
    @sylvestre
    sylvestre authoredJun 8, 2023
    Configuration menu
    Copy the full SHA
    83e1431View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. Configuration menu
    Copy the full SHA
    673d5b6View commit details
    Browse the repository at this point in the history
  2. Merge pull request#22from sylvestre/rename

    rename from humantime_to_duration to parse_datetime
    @sylvestre
    sylvestre authoredJun 9, 2023
    Configuration menu
    Copy the full SHA
    c1a2befView commit details
    Browse the repository at this point in the history
  3. document the old name

    @sylvestre
    sylvestre committedJun 9, 2023
    Configuration menu
    Copy the full SHA
    7ab1ad2View commit details
    Browse the repository at this point in the history
  4. Release version 0.4.0

    @sylvestre
    sylvestre committedJun 9, 2023
    Configuration menu
    Copy the full SHA
    bed2d16View commit details
    Browse the repository at this point in the history
Loading

[8]ページ先頭

©2009-2025 Movatter.jp