Tag Info

New answers tagged

1

On OpenWRT, date is busybox, which has limitations, but this is not strictly one of them. The underlying problem is that libc (uClibc) does not support this GNU strftime extension. You should have lua by default, but that won't help without some other non-default modules. hwclock calls gettimeofday() for comparing/setting the RTC (hardware clock), but it ...


0

Actually there is also a package called coreutils-date! Didn't know about it! There all standard functionality is included!


1

If you have a C compiler on it and can't find anything else, this will report, e.g. > millitime && sleep 1 && millitime 14/11/2014 9:39:49:364 14/11/2014 9:39:50:368 #include <errno.h> #include <stdio.h> #include <string.h> #include <sys/time.h> #include <time.h> int main (void) { struct timeval now; ...



Top 50 recent answers are included