指南 3个标注团队操作手册:提升标注速度与质量

日期时间

DateTime标签为标注界面添加了日期和时间选择功能。使用此标签可以为标注添加日期、时间戳、月份或年份。

Use with the following data types: audio, image, HTML, paragraph, text, time series, video

参数

参数 类型 默认值 描述
name string Name of the element
toName string Name of the element that you want to label
only string Comma-separated list of parts to display (date, time, month, year) date and month/year can’t be used together. The date option takes precedence
format string Input/output strftime format for datetime (internally it’s always ISO); when both date and time are displayed, by default shows ISO with a “T” separator; when only date is displayed, by default shows ISO date; when only time is displayed, by default shows a 24 hour time with leading zero
[min] string Set a minimum datetime value for only=date in ISO format, or minimum year for only=year
[max] string Set a maximum datetime value for only=date in ISO format, or maximum year for only=year
[required] boolean false Whether datetime is required or not
[requiredMessage] string Message to show if validation fails
[perRegion] boolean Use this option to label regions instead of the whole object
[perItem] boolean Use this option to label items inside the object instead of the whole object

示例

<View>
  <Text name="txt" value="$text" />
  <DateTime name="datetime" toName="txt" only="date" />
</View>

本文内容

  1. Parameters
  2. 示例
专为各种规模的团队设计 版本比较