Skip to content

Add autoconversion feature #3

Description

@OnkelTem

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions