Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autoconversion feature #3

Open
OnkelTem opened this issue Feb 25, 2015 · 0 comments
Open

Add autoconversion feature #3

OnkelTem opened this issue Feb 25, 2015 · 0 comments

Comments

@OnkelTem
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant