Template:Age in days Unix

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search


Description

This template returns the number of days between two given Unix timestamps. To use with named parameters:

{{age in days Unix|time1= |time2= |days-label=}}

or with anonymous (unnamed) parameters:

{{age in days Unix|time1|time2|days-label}}

Parameters

time1
The start (earlier) Unix timestamp value. If unspecified, this template will return nothing.
time2
The end (later) Unix timestamp value. If unspecified, this template will return nothing.
days-label
The label used after the calculated number of days. If unspecified, no label will be included.

Examples

Without days-label

{{age in days Unix|1|31536000}}

364

With days-label

{{Aidu|1745313300|1749917949|days}}

53 days

With a blank date

Null example: ({{age in days Unix|1745313300||days}})

Null example: ()