Representing Fraction of Second with ISO 8601:2004

血红的双手。 提交于 2019-12-03 16:01:06

ISO 8601:2004 doesn't specify the number of digits in the decimal fraction.

4.2.2.4 Representations with decimal fraction

The interchange parties, dependent upon the application, shall agree the number of digits in the decimal fraction. The format shall be [hhmmss,ss], [hhmm,mm] or [hh,hh] as appropriate (hour minute second, hour minute, and hour, respectively), with as many digits as necessary following the decimal sign. A decimal fraction shall have at least one digit.

Yes, your representation is correct if you use 6 digits for the decimal fraction.

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