数据格式描述了不同类型的数字和语言数据

Data formats depict different types of numeric and linguistic data.


日期与时间

The date and time may be formatted in the following ways:

Date or time When and how to use Example
Time Within the current day, use uppercase AM or PM,
without periods (or lowercase am/pm, if suitable
for the locale).
2:00 PM
24-hour clock Display the time without AM/PM. 14:00
Month, day, and year Show the date with the year. If it’s within the current
calendar year, don’t show the year.
January 14

14 January 2012 | | Approximate time | Round down to the largest and most recent date
or time. | In 5 minutes
3 days ago | | Absolute time | When approximate time isn’t appropriate, display
the specific date or time. | Today, 10:00 AM |


范围

通过短划线(不含空格)显示日期或时间范围。

To display a date or time range, show an en dash (without spaces) between a range of dates or times.

例如: 8:00 AM–12:30 PM 6 Jan–2 Feb

空格用于消除歧义。

For example:
8:00 AM–12:30 PM
6 Jan–2 Feb

Add spaces when spelling out months, or to remove ambiguity.

Range When and how to use Example
Year Date ranges are formatted based on whether the range covers the same year or the current year:
- Show the year on both the start and end
- If both dates have the current year, show the year only on the end of the range
Dec 6, 2013–Jan 2, 2014
January 4–6, 2014
AM/PM Use a single AM or PM at the end of the range, if both times have the same AM/PM. 8:00–10:30 AM

时区

由于不同地区的时区不同,时区的使用应该是具体的。

As time zones vary across regions, time zone usage should be specific.

Types of time zones Description Example
Single-digit hours Remove the leading 0 for single-digit hours. UTC+5:00
Single times zones Use two-letter time zones when referring to a single time zone. Remove the S (for Standard) or D (for Daylight). Open 4–10 PM ET
Combination time zones When specifying a date for a nationwide audience, include Standard or Daylight acronyms (such as EDT) to avoid confusion. Some U.S. states, such as Arizona, don’t use daylight savings time. The first game is on April 13, 2015 at 4 PM EDT.

使用条件

根据上下文,显示日期、时间或日期和时间。

Depending on the context, show either date or time, or both date and time.

Time period When and how to use Example
Future Include time to a future day or date. 10 Jan, 08:00
Past When referring to a past time, display both date and time. Reminded Jan 5, 7:16 AM
Distant past For events in the distant past, omit the time. 3 Jan
Weekday When referring to a day of the week, display the abbreviated day separated by a comma. Mon, Jan 10, 8:00 AM
Duration Show the duration of a recording, like audio or video, in the format H:MM:SS. Omit hours or seconds if they don’t apply.
Use the same format across the same context. A video labelled “3:15” referring to hours and minutes, should not use that time format later on that page to refer to minutes and seconds.
0:30
1:01:05

缩写

显示空间有限时,使用缩写。

Use abbreviations when space is limited.

Unit of time Description Example
Month Months can be abbreviated or numeric. Jan 6
3/12/12
Date The US date format is month/day/year, but other countries use day/month/year. If the date March 12, 2012 is written as 03/12/12, it could be interpreted to mean December 3, 2012 for different users.
Day Abbreviate days of the week using the first letter of each day. S for Sunday
M for Monday
Day and time Abbreviated days of the week may be combined with a time. Sun, 2:00 PM
Sun, 14:00
Rounded numbers You can use abbreviated numerical units, which remove the “:00,” for timestamps, labels on graphs, durations, and more. 8 AM
2 hr 32 min ago

注意事项

当显示空间足够时,可以根据用户需求来选用日期与时间的格式。

这有助于用户了解日期或时间,例如:

Store open 9:00 AM–Midnight Reminder for tomorrow afternoon

  • 用这些术语来表示“昨天”或“明天”
  • 如果这一天是在即将到来的一周,请写明是星期几(例如星期二)

Display date and time information as people normally speak to each other, when space is available. This helps users understand what the date or time is for, such as: “Store open 9:00 AM–Midnight” or “Reminder for tomorrow afternoon.”

  • Refer to “yesterday” or “tomorrow” in those terms
  • If the day is in the upcoming week, include the day of the week (such as Tuesday)

数据

当显示的数据为数字或字母,设计者可以根据需要进行截断或部分隐藏处理。

Data redaction and truncation refers to how to represent truncated numbers and disguise sensitive data.

数字

加重号 [•] 是项目符号,可以用来部分隐藏敏感数据。

Midline ellipses [• • •] are bulleted characters that partially hide sensitive data. They indicate when a number, such as a credit card or Social Security number, is not entirely visible.

SSN • • • 5678

您可以在字体和平台上使用此格式:

1.在第一个中线椭圆之前放置两个常规空间。
2.然后在每个中线椭圆之间和最后一个椭圆之间添加一个薄空格。

或者,使用Unicode字符串代替:U0020,U0020,U2022,U2006,U2022,U2006,U2022,U2006。

To redact most numbers, like Social Security numbers, use three midline ellipses [• • •].
You can use this format across typefaces and platforms:

  1. Place two regular spaces before the first midline ellipse.
  2. Then add a thin space between each midline ellipse and after the final one.

Or, use the Unicode string instead:
U0020,U0020,U2022,U2006,U2022,U2006,U2022,U2006

什么时候使用[••••] ?

何时使用4个椭圆信用卡和借记卡数据必须使用四个中线椭圆[••••]进行编辑。

用Unicode编写:U0020,U0020,U2022,U2006,U2022,U2006,U2022,U2006,U2022,U2006

Visa • • • • 1234

Credit and debit card data must be redacted using four midline ellipses [• • • •].

Written in Unicode:
U0020,U0020,U2022,U2006,U2022,U2006,U2022, U2006,U2022,U2006


字母

[…] 表示未显示的字母,单词或短语,起到截断作用。

它们还表示名称或电子邮件地址仅部分可见。

Baseline ellipses […] represent letters, words, or phrases that aren’t shown. They also represent when a name or email address is only partially visible.

PayPal cloudysanfrancisco@gmail.com…

Do
Redacted email address with three baseline ellipses.

用法

在显示的最后一个字母后,将省略号键入连续三个句点(或Unicode字符U2026)。

Type the ellipses as three periods in a row (or Unicode character U2026) after the last letter shown.