O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

systime

Synopsis

                  systime( )
               

Return number of seconds since midnight UTC, January 1, 1970.

Example

Log the start and end times of a data processing program:

                  BEGIN {
                  now = systime( )
                  mesg = strftime("Started at %m/%d/%Y %H:%M:%S", now)
                  print mesg
                  }
                  process data ...
                  END {
                  now = systime( )
                  mesg = strftime("Ended at %m/%d/%Y %H:%M:%S", now)
                  print mesg
                  }

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required