[英]Display DB2 time in PHP
I am inserting the time values as 我将时间值插入为
<?php $time = date("H").date("i").date("s"); ?>
in DB2 database field, that has the datatype as 6 S
(Length=6, Type=Signed). 在DB2数据库字段中,其数据类型为6 S
(长度= 6,类型=带符号)。 So for the time of 6:54 PM, i see that the value is stored as some numeric figure, like: 185,414
. 因此对于下午6:54的时间,我看到该值存储为一些数字,例如: 185,414
。
I want to display back the original value in php. 我想在php中显示原始值。
How do i correctly parse the numeric time value and show that in php ? 如何正确解析数字时间值并在php中显示出来?
好吧,我很努力地找出解决方案,就像从字符串中删除逗号并将其格式化为如下所示一样简单: hh:mm:ss
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.