Re: Printout the current timestamp in VxWorks



Look in the ansiTime library, use time() to get the system time in
seconds (i.e. calendar time), then use ctime() to get the time into a
string. The difficult part is usualy setting the board time. On all the
PPC boards i've used, the time always starts at Zero, (00:00 January
1st, 1990) each time the board is booted. Look into building sntp into
the kernel to get time from ntp server if you can.

.



Relevant Pages

  • ctime command for fortran in unix
    ... I am using a f90 code which uses module PORTLIB in windows. ... this module to get system time via ctime function. ... Since module PORTLIB is not supported by unix and system ...
    (comp.unix.questions)
  • ctime command for fortran in unix
    ... I am using a f90 code which uses module PORTLIB in windows. ... this module to get system time via ctime function. ... Since module PORTLIB is not supported by unix and system ...
    (comp.unix.aix)
  • ctime command for fortran in unix
    ... I am using a f90 code which uses module PORTLIB in windows. ... this module to get system time via ctime function. ... Since module PORTLIB is not supported by unix and system ...
    (comp.unix.aix)
  • ctime command for fortran in unix
    ... I am using a f90 code which uses module PORTLIB in windows. ... this module to get system time via ctime function. ... Since module PORTLIB is not supported by unix and system ...
    (comp.unix.programmer)
  • ctime command for fortran in unix
    ... I am using a f90 code which uses module PORTLIB in windows. ... this module to get system time via ctime function. ... Since module PORTLIB is not supported by unix and system ...
    (comp.unix.shell)