properties - Undocumented Properties for DateInterval Class
问题描述
When I vardump a DateInterval object, in PHP 7.2.1, I get the following output:
object(DateInterval)#4 (16) {
["y"]=>
int(0)
["m"]=>
int(0)
["d"]=>
int(14)
["h"]=>
int(0)
["i"]=>
int(0)
["s"]=>
int(0)
["f"]=>
float(0)
["weekday"]=>
int(0)
["weekday_behavior"]=>
int(0)
["first_last_day_of"]=>
int(0)
["invert"]=>
int(0)
["days"]=>
int(14)
["special_type"]=>
int(0)
["special_amount"]=>
int(0)
["have_weekday_relative"]=>
int(0)
["have_special_relative"]=>
int(0)
}
There is another thread with the same question but is marked as duplicate. The link given here doesn't describe what I want to know.
NOTE: I am able to access all the properties for these DateInterval Object. I need a little knowledge about the properties not mentioned in the documentation.
Please tell me what are these properties?
- weekday
- weekday_behavior
- weekday_behavior
- first_last_day_of
- invert special_type
- special_amount
- have_weekday_relative
- have_special_relative
解决方案
推荐阅读
- python - 将一个数字的因数相加(不包括数字本身)
- python - 无法通过 for in range 循环访问元组元素
- javascript - 使用javascript将图像src更改为本地图像?
- python - Pandas DataFrame 中的正则表达式 - 查找字符之间的最小长度
- java - Logback 只会将消息记录到 syslog 一次
- python - 编写一个以负数结尾的循环并打印正数的总和
- powershell - powershell csv 从另一列中减去一列日期值并将结果写入第三个,其中 1 天等于 24 小时
- java - 如何使用 QueryDsl 在查询中按 id 删除重复行
- monaco-editor - 向摩纳哥编辑器添加更多语义突出显示
- azure - Azure 租户创建 - 谁可以创建?