[Doxygen-develop] PATCH: date/time format
Brought to you by:
dimitri
From: Boaz K. <boa...@ya...> - 2003-11-04 03:33:08
|
Currently, date/time strings in the generated documentation are based on local-time, and appear in a fixed (hard-coded), English-based format. I'd like to have better control on the format, and optionally use UTC time. The attached patch introduces three new configuration options: DATETIME_FORMAT strftime(3) format for date/time DATE_FORMAT strftime(3) format for date UTC_DATETIME if YES, use UTC time; else use local time The default values for these options preserve the current behavior (but see caveat below). Caveat: The resulting date/time strings might be locale-dependent. To correctly emulate the current behavior, one must set the environment to use the default (C) locale before running doxygen. Portability note: The new code should work on all Unix-like systems, as well as Windows (at least with MS Visual C++). The existing code uses Qt code that seems to also support OS/2 and DOS, which the new code, most likely, does _not_ support. I wasn't sure if doxygen itself is expected to support these platforms; to be on the safe side, the new code is conditioned on not being executed in any of these platforms, so if doxygen used to work there, it should still work, only without these new options. If these platforms are not really supported, some #ifdef's and #ifdef'ed code (all marked with FIXME comments) can be safely removed. -- Boaz __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ |