2

By the command

$date

the time and date of the system (according to local place) is printed. Is there a command that outputs Kde's short date format in terminal?

enter image description here


The date in KDE also depends on a calender:

enter image description here

1 Answer 1

2

You can use date for that anyway:

date '+%A, %Y/%m/%d'

which will currently output

Friday, 2013/12/20

Just run date --help to find out more...smiley


For calendar specific, or at least locale specific, specific date names, try exporting the locale - e.g. this one:

export LC_TIME=am_ET.UTF-8

and then run the command again:

ዓርብ, 2013/12/20

You can list the locales with locale -a - more on that here.

This bit is based on a lot of guessing...

4
  • 1
    useful. But KDE has a calendar type parameter. Dec 20, 2013 at 21:20
  • 1
    Does the above do what you want?
    – Wilf
    Dec 20, 2013 at 21:28
  • 1
    thanks. But still I don't think a non-kde command can produce the date and time as shown in the second image above. Dec 20, 2013 at 21:41
  • 1
    KDE would not have its own commands, it would have it as a feature within their programs... As such, there is not likely to be a command for it... :-s
    – Wilf
    Dec 20, 2013 at 21:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .