Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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 locale.so finally I used some IF to do so.like this:crunchbanglinux.org/forums/topic/6110/… –  namiheike Dec 20 '11 at 5:51
add comment

Your Answer

 
discard

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.