Git Product home page Git Product logo

utime's People

Stargazers

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

Watchers

 avatar

utime's Issues

Can't go back more than 100 days

When I try to parse a relative date (- 180 days) it will fail.
Going back 20 days (-20days) works fine.

Tested it incrementally until 100 days in the past. This won't work, where 99 days will work.

A screenshot:
image

Nanosecond timestamp option

I often has to use nanosec level timestamps (yay c++) but I have to add the zeros at the end manually now to pad it.

Could it be added into the option dropdown?

Wrong time conversion

Issue

Wrong time conversion
1678608000000 converted to 2023-03-12T09:00:00

wrong time

Expected

2023-03-12T08:00:00 is correct time

Options

  • Machine timezone (Mac) - (2023/04/13 PDT)

options

Add autoconversion feature

I was searching for something similar, but my idea was to convert ANY timestamps on a page on fly to readable dates. All essential stuff of date conversion is already implemented, so making this feature is just a matter of some regexps and tuning.

To configuration can be added two number settings: FROM timestamp and TO timestamp. Then we search on a page for a string of decimal digits of strlen(FROM) length, then numerically compare it to FROM and TO, and if it is between, then convert to what output date preferences say. Example settings would be e.g:
FROM = 1234567890 โ€” famous date, remember it ? :-)
TO = either unset (for no upper limit) or 2222222222 or similar

To distinguish converted dates from original page information either some special HTML symbol can be added to the output OR some non-html inline element like <x-myutime-123> with click event bound to extension for e.g. some later processing or bringing date to utime popop. But for the latter I can't think of any useful use case.

This is definitely needed when working with databases!
Example:
https://sc-cdn.scaleengine.net/i/02eb2dc6a56d6fbca3817add8891a0d5.png

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.