That neither gives you a timezone (the last field only indicates whether daylight saving time is active or not), nor does it give you system time information. localtime gives you the time for whatever timezone your process has set (or inherited). Which may be the same as your system timezone, but on a typical Unix system, most likely is not.