Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 自定义日历转换_Php_Date_Type Conversion - Fatal编程技术网

Php 自定义日历转换

Php 自定义日历转换,php,date,type-conversion,Php,Date,Type Conversion,对于个人项目,我需要将PHP中的日期从公制转换为自定义日期。(当然,反过来也是如此) 自定义日期的工作方式如下: 24h => 2H30 1 season/month (it's the same) => 135 days of 2h30 1 years => 4 seasons of 135 days of 2h30 The year 400 correspond to 03/26 OOhOO. For exemple : 09:20 - 14 jun 2013 =>

对于个人项目,我需要将PHP中的日期从公制转换为自定义日期。(当然,反过来也是如此)

自定义日期的工作方式如下:

24h => 2H30
1 season/month (it's the same) => 135 days of 2h30
1 years => 4 seasons of 135 days of 2h30
The year 400 correspond to 03/26 OOhOO.
For exemple : 09:20 - 14 jun 2013 => 91 Oridor 407 - 01 h 03 m
用这两种方法进行转换的最佳方法是什么


谢谢大家。

我不了解你们的系统。你能详细说明一下吗?定制系统中的一天对应于我们公司的2h30。一个月有135天,一年有4个月。日历的起始日期是400年,即2013年3月26日。你的季节从哪一天开始?