Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm playing with conky and I'm a Chinese user, so my locale of system is something like zh_CN.UTF-8 conky seems will use the system API to show the date, but I don't want conky to show date in Chinese, and I really don't want to change the locale of whole system,
so, is there any solution for this?

Thanks a lot.

share|improve this question
up vote 2 down vote accepted

According to the documentation the 'time' variable in conky takes an optional format-string. From the conky variables page i got this.

time (format) Local time, see man strftime to get more information about format

ie ${time %H:%M} will output the time in 24-hour format.

So do a man strftime to find out the correct format string for your needs.

For more information on conky variables take a look at this: conky variables

share|improve this answer
thanks,but according to the man strftime,the output always according to the current finally I used some IF to do… – namiheike Dec 20 '11 at 5:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.