--- title: unix # Set this to draft for now; "unix" is not a function. We need to redo this section with: # - methods vs functions # - function namespaces as subsections. draft: true description: Unix returns the local Time corresponding to the given Unix time, sec seconds and nsec nanoseconds since January 1, 1970 UTC. godocref: https://golang.org/search?q=Unix#Functions date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 #tags: [dates,time] categories: [functions] menu: docs: parent: "functions" ns: signature: ["Unix"] workson: [times] hugoversion: relatedfuncs: [Format,dateFormat,now,time] deprecated: false aliases: [] --- `Unix` returns t as a Unix time; i.e., the number of seconds elapsed since January 1, 1970 UTC. ## `Unix` Example 1: Show Only Upcoming Events The following assumes you have a content section called `events` (i.e., `content/events/*.md`). The following [partial template][] allows you to only list events that haven't occurred yet. {{% code file="layouts/partials/upcoming-events.html" download="upcoming-events.html" %}} ```html