javascript ISO8601 3.5.2 Time Of Day (24-hour) datatype disconnected from calendar

自古美人都是妖i 提交于 2019-12-13 04:24:58

问题


ISO 8601 3.5.2 distinguishes between date-time combined values and time-only values. Time-only values model the 24-hour clock of an indeterminate day not on the calendar. For Time-Only values, 24:00 is a valid value, to distinguish the end-of-the-day from the start-of-the-day (00:00).

Until explicitly attached to a day on the calendar, Time-Only values are simply a point on the segment of finite time that runs from 00:00 to 24:00.

What is the current ECMA standard with respect to Time-only values? EDIT: Is there a proposed standard that address this?


回答1:


In the current ECMA standard for JavaScript there is no time-only type. There's just Date.



来源:https://stackoverflow.com/questions/14540759/javascript-iso8601-3-5-2-time-of-day-24-hour-datatype-disconnected-from-calend

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!