时间格式PT00H00M00S的名称是什么?使用什么语言?(What is the name of the time format PT00H00M00S and what languages use

编程入门 行业动态 更新时间:2024-10-25 12:22:19
时间格式PT00H00M00S的名称是什么?使用什么语言?(What is the name of the time format PT00H00M00S and what languages use it?)

我正在使用PHP脚本处理excel文档,无法确定PT00H00M00S是什么数据类型/格式,随后我找不到使用正则表达式的方法。 我想将其转换为更标准的时间格式(00:00:00),我无法在谷歌上研究这个,因为我不知道“PT ... S”实际上被称为日期类型/格式。

请帮帮我。

I'm working with excel documents using PHP scripts and cannot determine what data type/format PT00H00M00S is, and subsequently I can't find a way to work with it without using regex. I'd like to convert this into a more standard time format (00:00:00) and I can't research this on google because I don't know what "PT...S" is actually called as a date type/format.

Please help me.

最满意答案

它是ISO 8601持续时间

请参阅此简要概述: http : //en.wikipedia.org/wiki/ISO_8601#Durations

许多语言都有可用的工具,包括DateInterval形式的PHP。

It is an ISO 8601 duration.

See this brief overview: http://en.wikipedia.org/wiki/ISO_8601#Durations

Many languages have tools available to work with them, including PHP in the form of DateInterval.

更多推荐

本文发布于:2023-07-26 19:23:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1279887.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:名称   语言   格式   时间   format

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!