utime icon indicating copy to clipboard operation
utime copied to clipboard

Add autoconversion feature

Open OnkelTem opened this issue 10 years ago • 0 comments

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

OnkelTem avatar Feb 25 '15 17:02 OnkelTem