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

Export in YYYY-MM-DD format for easier folder navigation. #1641

Closed
Betsy25 opened this issue May 17, 2016 · 10 comments
Closed

Export in YYYY-MM-DD format for easier folder navigation. #1641

Betsy25 opened this issue May 17, 2016 · 10 comments

Comments

@Betsy25
Copy link

Betsy25 commented May 17, 2016

Describe the issue

Currently the Export format is my-ublock-backup_DD-MM-YYYY_TIME
It's hard to navigate your backup folder, since with 99% of users, Explorer is configured to sort,
which put dates like 6-5-2016 before 17-5-2011, thus all backup are scattered around "randomly". If the export string would be my-ublock-backup_YYYY-MM-DD-TIME, the backups would be sorted from oldest to newest, making it easier for the user to find, inspect or Import the last backup.

Other guidelines do not relate to this issue.

@gorhill
Copy link
Owner

gorhill commented May 17, 2016

Can't Explorer sort files by "last modified time"?

@krzysztof-sikorski
Copy link

Can't Explorer sort files by "last modified time"?

This works when you use a single backup folder on a single machine - but the modification dates could probably get messed up if you copy files around or send them over the network.

@gorhill
Copy link
Owner

gorhill commented May 17, 2016

I could use Date.toISOString() instead of Date.toLocaleString(), but I don't know how well it would be appreciated by those who rather have the date localized. For example, in arabic:

Date.toLocaleString(): ط-ublock-الخاص-بي_١٧‏/٥‏/٢٠١٦ ١٠:٢٠:٠٦ ص.txt
Date.toISOString(): إحتياط-ublock-الخاص-بي_2016-05-17T14-28-36.988Z.txt

(edit: does not render properly here in comment, but anyways the point is I am unsure 2016-05-17_... is acceptable in all locales.)

@Betsy25
Copy link
Author

Betsy25 commented May 17, 2016

According to Wikipedia DMY is the most used format, however i suspect most of the people might prefer the YMD format regarding computers & exploring, the big advantage (for all of us) is that no constant fiddling with sorting formats is needed when YMD is used & most software uses it when it generates multple files for it's working.

@jjohns71
Copy link

YYYY-MM-DD is an internationally recognized standard with the publication of ISO 8601.

Like the OP stated, this would be a nice feature to add!

@Hrxn
Copy link

Hrxn commented May 17, 2016

Maybe stuff like this is best dealt with the right tools, i.e. the countless programs designed for renaming of files.

Any tool that can rename using regular expressions, for example.
Match:
(my-ublock-backup_)(\d\d)(-)(\d\d)(-)(\d\d\d\d)(_)(\S*)
Replace with:
$1$6-$4-$2-$8

@n1trux
Copy link

n1trux commented May 21, 2016

Proposed solution: Add an advanced switch for using locale, use yyyy-mm-dd by default.

@Betsy25 Betsy25 closed this as completed May 28, 2016
@gorhill gorhill reopened this May 28, 2016
@Grossdm
Copy link

Grossdm commented Jun 1, 2016

I thought that I would start a request/issue for ISO 8601 filenames, but please add me to the list of those wanting it.

Something that would satisfy ISO 8601 and most modern file systems, AFAIK:
(ublock-name)-YYYY-MM-DDThh.mm.ss.txt

Two other thoughts: the weekday is of no use to me (and obviously redundant), and please do not use a comma in filenames. I'm sure the latter thought has its dissenters.

ISO 8601: Combined date and time representations

@Betsy25
Copy link
Author

Betsy25 commented Jan 2, 2017

Sorry to dig this up, but would it be a good idea, to do the same for the default !date... header :
! 2-1-2017 03:40:13 http://www.cnbc.com/2017/01/02/dick-clark-productions-rejects-mariah-careys-sabotage-claim.html
...which is automatically added to the "My filters" list upon adding an item created with the element picker ?

@Grossdm
Copy link

Grossdm commented Jan 3, 2017

@Betsy25 I'm becoming a fan of yours. 😀

Although I would put this at a much lower priority than ISO 8601 style file naming, "My filters" does get cluttered with a variety of date and time formats.
If it would be a simple change to implement, I would prefer ISO 8601 here also.

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

7 participants