XBRL实例文档中周期时间(startDate、endDate、instant)的特殊解释
2009-11-26 19:49
483 查看
上下文中的周期时间,可以是日期date,也可以带时间的日期信息dateTime。解释这些时间时,XBRL有自己的特殊性。
instant和endDate中的解释相同,而startDate与之不同。
在startDate中的日期,如果不带时间信息,应该被解释为这一天的凌晨T00:00:00 (这一天的刚开始的时间);
在endDate、instant中的日期,如果不带时间信息,应该被解释为这一天的午夜T24:00:00,也就是第二天的T00:00:00。
在段时间的上下文中,结束日期endDate一定要大于开始日期startDate,这个比较是将日期根据上面的规则转换成带时分秒的时间后,再进行比较。因此 startDate="2009-12-31" endDate="2009-12-31" 它们是同一天的话,应该也是可以的。
在实际的业务实践中,上下文中的时间应该遵循下面的规则
上期期末数 (点时间) (T1 - 1)
本期期初数 (点时间) (T1 - 1)
本期数 (段时间) (T1 ~ T2)
本期期末数 (点时间) (T2)
这里要求 T2 >= T1,实际上,上期期末数,本期期初数应该是同一个数,不应该披露两次。除非上下文的其他部分不同。
注意这里的时间区间,不一定是2009-01-01 ~ 2009-12-31 这样标准的会计年度。
任何时间区间的起始、期末都应该遵循这个要求。
While the content of the instant, startDate and endDate elements are defined to use the data representation defined by ISO 8601 (as restricted by [SCHEMA-2]), XBRL adds further restrictions and constraints.
For an item element with periodType="instant" (See Section 5.1.1.1), the period MUST contain an instant element.
For an item element with periodType="duration", the period MUST contain forever or a valid sequence of startDate and endDate.
A date, with no time part, in the content of an startDate element is defined to be equivalent to specifying a dateTime of the same date, and T00:00:00 (midnight at the start of the day).
A date, with no time part, in the endDate or instant element is defined to be equivalent to specifying a dateTime of the same date plus P1D and with a time part of T00:00:00. This represents midnight at the end of the day. The reason for defining it thus, i.e. as midnight at the start of the next day, is that [SCHEMA-2] mandates this representation by prohibiting the value of 24 in the "hours" part of a time specification, which is ISO 8601 syntax.
If supplied, the endDate MUST specify or imply a point in time that is later than the specified or implied point in time of the corresponding startDate.
instant和endDate中的解释相同,而startDate与之不同。
在startDate中的日期,如果不带时间信息,应该被解释为这一天的凌晨T00:00:00 (这一天的刚开始的时间);
在endDate、instant中的日期,如果不带时间信息,应该被解释为这一天的午夜T24:00:00,也就是第二天的T00:00:00。
在段时间的上下文中,结束日期endDate一定要大于开始日期startDate,这个比较是将日期根据上面的规则转换成带时分秒的时间后,再进行比较。因此 startDate="2009-12-31" endDate="2009-12-31" 它们是同一天的话,应该也是可以的。
在实际的业务实践中,上下文中的时间应该遵循下面的规则
上期期末数 (点时间) (T1 - 1)
本期期初数 (点时间) (T1 - 1)
本期数 (段时间) (T1 ~ T2)
本期期末数 (点时间) (T2)
这里要求 T2 >= T1,实际上,上期期末数,本期期初数应该是同一个数,不应该披露两次。除非上下文的其他部分不同。
注意这里的时间区间,不一定是2009-01-01 ~ 2009-12-31 这样标准的会计年度。
任何时间区间的起始、期末都应该遵循这个要求。
Sub-element | XML Schema data type |
instant | date or dateTime. |
forever | empty |
startDate | date or dateTime |
endDate | date or dateTime |
For an item element with periodType="instant" (See Section 5.1.1.1), the period MUST contain an instant element.
For an item element with periodType="duration", the period MUST contain forever or a valid sequence of startDate and endDate.
A date, with no time part, in the content of an startDate element is defined to be equivalent to specifying a dateTime of the same date, and T00:00:00 (midnight at the start of the day).
A date, with no time part, in the endDate or instant element is defined to be equivalent to specifying a dateTime of the same date plus P1D and with a time part of T00:00:00. This represents midnight at the end of the day. The reason for defining it thus, i.e. as midnight at the start of the next day, is that [SCHEMA-2] mandates this representation by prohibiting the value of 24 in the "hours" part of a time specification, which is ISO 8601 syntax.
If supplied, the endDate MUST specify or imply a point in time that is later than the specified or implied point in time of the corresponding startDate.
相关文章推荐
- JQuery UI datepicker在选择startDate与endDate时手动清空数据后,时间选择依然有限制问题!
- Django date__range([start,end])其中不包括end时间
- angularjs中ng-repeat-start与ng-repeat-end用法实例
- 判断当前日期是否在[startDate, endDate]区间
- 解决变参数问题:va_list、va_start、vsnprintf、va_end的使用方法和实例
- iOS开发之时间戳(或date)转字符串的实例代码
- Angularjs中ng-repeat-start与ng-repeat-end的用法实例介绍
- Delphi源码分析之System.DateUtils Start/End functions
- va_start va_arg va_end 的原理与实例
- 给easyui datebox时间框控件扩展一个清空的实例
- 一个fprintf的简单封装实例(vsprintf,va_start(),+va_arg(),+va_end()可变参数列表)
- Bootstrap时间选择器datetimepicker和daterangepicker使用实例解析
- va_start va_arg va_end 的原理与实例
- get curr month start date, last month end date
- va_start va_arg va_end 的原理与实例
- 解释va_arg, va_end, va_start
- bootstrap-datetimepicker年视图中endDate设置之后比正常时间提前两个月
- va_list,va_start,va_end详细解释
- 获取startDate与endDate 之间相隔几天
- MySQL里获取当前week,month,quarter 的 start_date/end_date