• No products in the cart.

Chinese time format


Just a quick post on a Chinese time format for outputting the date and time in Chinese. Various programming languages let you construct date and time formats using a standard syntax (strftime, from C).

I always find myself resetting the time and date format to Chinese for the clock in Cinnamon / GNOME, so I thought I'd make a quick note of this Chinese strftime date formatting:

YY年MM月DD日 / day of the week / time

As long as your system language is Chinese and it correctly interprets the formats using Chinese, you'll get a Chinese date and time like this:

2013年07月18日 星期四 上午10:27 

Normally I'd prefer 24 hour time, but I think I might as well get a couple more hanzi in my day by setting it to 12 hour and adding 上午 / 下午 afterwards. You can of course play around with the above to make any sort of date / time you like. This is a good resource for it.


0 responses on "Chinese time format"

    Leave a Message

    Copyright ©right 2017 Chinlingo Inc. All rights reserved.  闽ICP备15003609号-2