Format Unix
Format Unix with Go layout.
How to use Format Unix
Format Unix seconds with a Go time layout. Free to use in D2i DevTools — no account required.
Steps
- Fill in Unix. This field is required.
- Fill in Layout.
- Click Run and copy the result under the form.
Frequently asked questions
What is Format Unix used for?
Use it to render an epoch in a layout your logs or UI expect. The reference time in Go layouts is Mon Jan 2 15:04:05 MST 2006.
How do I use the free online Format Unix tool?
Fill in Unix. This field is required. Fill in Layout. Click Run and copy the result under the form.
What can I paste or upload into Format Unix?
Enter Unix seconds and a layout. The default layout is 2006-01-02T15:04:05Z07:00 (RFC3339).
What output does Format Unix give me?
The formatted time. The layout uses Go’s reference numbers, not strftime codes like %Y.
Is Format Unix free, and is my input private?
Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.
Why did YYYY-MM-DD print the letters instead of the year?
Go layouts are by example. Use 2006 for the year, 01 for the month, and 02 for the day. %Y is not a Go layout token.
Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.