Is there a way to get time and date stamps, or other standard counters, to appear in Chinese? I am using xeCJK.
Package babel (with \selectlanguage{french} etc. in context) makes it simple for the major European languages.
Is there a way to get time and date stamps, or other standard counters, to appear in Chinese? I am using xeCJK.
Package babel (with \selectlanguage{french} etc. in context) makes it simple for the major European languages.
The package zhnumber provides many macros to convert numbers, counters, dates and times into their Chinese representation.
Unfortunately, I can only understand the macro and option names in the manual.
In Use of Chinese numers similar to \Roman and \Arabic you can find another example that uses LaTeX counters.
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{SimSun}
\usepackage{zhnumber}
\begin{document}
Date: \zhtoday
Time: \zhcurrtime
\zhnumsetup{time=Chinese}
Date: \zhtoday
Time: \zhcurrtime
\zhnumsetup{time=Arabic}
1586/08/17: \zhdate{1586/08/17}
\end{document}

\zhdate{\year/\month/\day}(or\zhtoday) produces “2013 年 2 月 1 日” with thezhnumberpackage. – Qrrbrbirlbel Feb 01 '13 at 21:58zhnumberpackage solve all of my problems — thank you! Why don't you submit this as the answer and I'll approve it. – brannerchinese Feb 01 '13 at 22:56