Git Product home page Git Product logo

ut-cli's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar yoshihitoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yanshoutong

ut-cli's Issues

ut crashes while parsing timestamp in milliseconds

I installed ut on Windows 10 with cargo. Then I executed

ut -p ms g

Then I fed the result to ut p and got the following output:

thread 'main' panicked at 'SystemTimeToFileTime failed with: Wrong Parameter. (os error 87)',
C:\Users\marduk\.cargo\registry\src\github.com-1ecc6299db9ec823\time-0.1.42\src\sys.rs:851:13

Can't parse negative timestamp.

Problem

$ ut p -1234
error: Found argument '-1' which wasn't expected, or isn't valid in this context

USAGE:
    ut parse [OPTIONS] <TIMESTAMP>

correct behavior is...

$ ut p -1234
1970-01-01 08:39:26 (+09:00)

How to fix

Add AppSettings::AllowLeadingHyphen to the settings.

see: clap-rs/clap#1245

Pre-built binary for Windows

Even though Windows does not belong to the UNIX family, it is useful to have a cross-platform command line tool to generate timestamps. Thank you for writing it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.