View source code
							
							
						
								Display the source code in std/datetime/systime.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.datetime.systime.SysTime.fromUnixTime
Converts from unix time (i.e. seconds from midnight, January 1st, 1970
        in UTC) to a SysTime.
						
					
				The C standard does not specify the representation of time_t, so it is implementation defined. On POSIX systems, unix time is equivalent to time_t, but that's not necessarily true on other systems (e.g. it is not true for the Digital Mars C runtime). So, be careful when using unix time with C functions on non-POSIX systems.
Parameters
| Name | Description | 
|---|---|
| unixTime | Seconds from midnight, January 1st, 1970 in UTC. | 
| tz | The time zone for the SysTime that's returned. | 
Example
import coreAuthors
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.