mate-desktop / caja

Caja, the file manager for the MATE desktop
https://mate-desktop.org/
Other
263 stars 144 forks source link

custom date formats needed (or how do i add more to the display settings dropdown?) #616

Open kn00tcn opened 8 years ago

kn00tcn commented 8 years ago

i only have the following three date formats:

well first off, i dont understand why the second one is ignoring the OS's time format (assuming the other two are, since i'm not using a 24h clock)

i just want to make a simple '2016-08-15 11:22:33 pm' or windows '08/15/2016 11:22:33 pm' format

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36949952-custom-date-formats-needed-or-how-do-i-add-more-to-the-display-settings-dropdown?utm_campaign=plugin&utm_content=tracker%2F651521&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F651521&utm_medium=issues&utm_source=github).
hodor22 commented 8 years ago

I asked myself too, how to change the date format into 05.09.2016 German time date format!

fliteshare commented 6 years ago

Please, no more feudal date & time formats. I would like to see ISO8601 in UTC as default format. As if we have almost arrived in the computer age !

kn00tcn commented 6 years ago

is that not option 2?

i do not want a 24 hour time, or normie wording like 'yesterday'

the way to go is user controlled, even if it's set only in dconf instead of the gui, it's quite common elsewhere like in web frameworks or management systems, it's right there in PHP as well https://secure.php.net/manual/en/function.date.php

fliteshare commented 6 years ago

It needs to be option 0 (zero) configured by DEFAULT.

Because am and pm are exactly opposite in French. am means apres midi (=after midday) pm means pre midi (=before midday). Which becomes a bloody nuisance just figuring out which is what according to language and colonial pasts across the planet.

If you desire to remain confused, feel free to screw it all up on your own computer. However there is NO need to take the rest of the world back to such "idyllic" feudal and colonial pasts. We grew out of that with the French revolution and the introduction of the metric system 220 year ago.

Hence DEFAULT = ISO standards ! It's why those standards were invented to begin with.

kn00tcn commented 6 years ago

this thread has nothing to do with choosing DEFAULT, it's about the hardcoded dropdown options that ignore what's set on the OS/panel clock, it also lacks a way to write in your own format

the files are not modified when changing display formats in a file manager, the time is for visualizing my own files, not yours, not to make screenshots of dir listings for others to decipher the time format, nothing is confusing

nobody is taken back, unix time is stored on the files, column sorting doesnt break because it's not a string... a human is not a computer, most humans dont need to see a full year constantly while looking at the last week of files! wtf does UTC have to do with finding out which file was modified last afternoon in the user's local time zone!?

options empower the user, open source choices empower the user, optimizing your own GUI workflows empower the user, apple/gnome3 styled dictatorships do not

ericmarceau-rogers commented 4 weeks ago

Hello,

I have this bash logic which I would like to see merged into Caja as an option for global time formatting. Would that be possible? (I would like it for the ls command, but I don't think that you handle that. :-) )

Create customized version of ‘ls l’ to report on files during the progress of the script. Key aspect is that, if the modification is older than 24 hours, it reports only the date; otherwise it reports only the time of the last change using the 24-hour clock.

myLs()
{
    #eval stat --format=\"\|\%A\|\%h\|\%s\|\%y\|\%n\|\" \"${1}\"
    eval stat --format=\"\|\%A\|\%h\|\%s\|\%Y\|\%n\|\" \"${1}\" |
    awk -v now=${time_now} '{
        n=split( $0, vals, "|" ) ;

        #mult24=( (1.0*now) - vals[5] )/86400 ;
        #print mult24 ;
        # 86400 seconds in a 24 hour period

        if( ( (1.0*now) - vals[5] )/86400 > 1 ){
            printf("%s %2s %15s  %10s  %s\n", vals[2], vals[3], vals[4], strftime("%F", vals[5]), vals[6] ) ;
        }else{
            printf("%s %2s %15s  %9s   %s\n", vals[2], vals[3], vals[4], strftime("%R:%S", vals[5]), vals[6] ) ;
        } ;

    }'
}

[edit] Email sent to coreutils@gnu.org , as directed by GNU, for the feature request.

[edit] Submitted bug/enhancement to Launchpad for coreutils.