On Tue, Mar 30, 2010 at 9:56 AM, Martin Bligh <[email protected]> wrote:
> On Tue, Mar 30, 2010 at 5:28 AM, Lucas Meneghel Rodrigues > <[email protected]> wrote: > > On Tue, Mar 30, 2010 at 9:02 AM, Jason Wang <[email protected]> wrote: > >> On my box, the output of hwclock is something like: > >> Tue 30 Mar 2010 09:38:44 AM CST -0.354462 seconds > > > > I just booted an Ubuntu Lucid Lynx VM and got the same output format > > for hwclock. However, I am under the impression that older distros > > might behave differently. Maybe we should provide the user a parameter > > where the regexp can be specified, while keeping a sane default? > > Yeah, that's definitely different on my box. How about we go with: > > > if not re.match('Sat *Feb *2 *03:04:.. 1980', date) or re.match('Sat > 02 Feb 1980 03:04:..', date): > Has anyone looked at the /sbin/hwclock source? It is probably using C library ctime or asctime calls to print out the time that might be localized differently for users based on environment/settings. setting LANG=C or LC_TIME=C or similar might help.
_______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
