Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. nitrostar

    time() returning the wrong time?

    Awesome I had found documentation on the +1900 but nothing on +1 for month.... I had fixed it using print strftime "%Y-%m-%d-%H.%M.%S\n", gmtime($test); Thank you so much!
  2. nitrostar

    time() returning the wrong time?

    Hi, I'm trying to display the current time and date... If I do this: #!/usr/bin/perl use POSIX; print "Time is: "; $test = time(); print "$test\n"; ($sec,$min,$hour,$mday,$month,$year) = gmtime($test); print "$year-$month-$mday-$hour:$min:$sec\n"; print strftime "%Y-%m-%d-%H.%M.%S\n"...

Part and Inventory Search

Back
Top