Time

Time is written using a twelve hour clock without spaces between the numbers and am or pm. On-the-hour time doesn't show minutes. To show minutes separate the hours and minutes with a colon (:). Do not include leading zeros.

To show a time period use a hyphen between the hours: 7am-7pm.

If you refer to a specific time zone in Australia use: AEST or AEDT.

When referring to international time zones, use the full name of the time zone:

  • Newfoundland Time Zone
  • US Central Time

If a time zone doesn't have a set name, use its Coordinated Universal Time (UTC) offset.

Some European countries use the 24hr clock as standard. Content changes may be required to support localisation for these countries.

Date

When a date is displayed, by default don't shorten the Day of the Week or the Month of the Year.

When space is constrained, shortened dates may use the notation of DD MMM YYYY without hyphens: time 10 Nov 1980.

Ambiguous date formats such as MM-DD-YYYY are not used in ansarada UI, nor are they necessary since the DD MMM YYYY format avoids the potential for confusion.

An exception is where a native date picker or other operating-system-level control honours the user's locale during editing. This format is not displayed to other users.

Date and time

The standard format for a full date and time combines the date first in DD MMM YYYY format, then time with optional timezone.

When the day is added it precedes the date. The format may be short or long but the format of day and month must match:

Full UTC/unix/zulu timestamps should not be displayed directly to the user, nor is 24-hour time used.

Relative dates

Where possible, relative or 'friendly' dates are used. The precise date must be available as a title, Dropdown or other affordance.

The rules for relative dates are not exactly linear. Instead they use the implementation in MomentJS and favour specific numbers to keep the strings short:

Range Moment Key Output
0 to 44 seconds s just now
44 seconds ss just now
45 to 89 seconds m 1 minute ago
90 seconds to 45 minutes mm 2 minutes ago ... 45 minutes ago
45 minutes to 90 minutes h 1 hour ago
90 minutes to 22 hours hh 2 hours ago ... 22 hours ago
22 to 35 hours d 1 day ago
36 hours to 25 days dd 2 days ago ... 25 days ago
26 to 45 days M 1 month ago
45 to 319 days MM 2 months ago ... 11 months ago
320 to 547 days y 1 year ago
548 days+ yy 2 years ago ... 20 years ago