当前位置:网站首页>How to get the difference between two dates rounded to hours
How to get the difference between two dates rounded to hours
2022-06-25 07:10:00 【French red wine sweet】
problem :
I'll illustrate what I would like to get in the following example: I will illustrate what I want in the following example :
'2010-09-01 03:00:00' - '2010-09-01 00:10:00'Using TIMEDIFF() , we get 2 as a result. Use TIMEDIFF() , We get 2 result .This means, it's not considering the 50 minutes left. It means , It doesn't consider the rest 50 minute .
In this case, what I'd like to get is: 50 (minutes) / 60 = 0.83 period. under these circumstances , What I want is :50( minute )/ 60 = 0.83 cycle .Therefore, the result should be 2.83 and not 2. therefore , The result should be 2.83 instead of 2.
Solution :
Reference resources : https://stackoom.com/en/question/FC6K边栏推荐
- ACWING/2004. 錯字
- Modify the default log level
- 48 张图 | 手摸手教你微服务的性能监控、压测和调优
- [he doesn't mention love, but every word is love]
- I have used it for six years!
- Unity get resource path
- Navicat防止新建查询误删
- 100 times larger than the Milky way, Dutch astronomers found mysterious objects in deep space
- 爱情️终结者
- Efficient exploration | an application practice of ES geographical location query
猜你喜欢

Navicat防止新建查询误删

What is the real future of hardware engineers?

Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment

爱情️终结者

弱大数定理的意义与证明

【工具分享】一款颜值与技能并重的软件

Practice of hierarchical management based on kubesphere

有能力的人从不抱怨大环境!
![[ros2] Why use ros2? Introduction to ros2 system characteristics](/img/d8/8906e01f9715328f3a05a51ab82fb1.png)
[ros2] Why use ros2? Introduction to ros2 system characteristics
![[2022 dark horse programmer] SQL optimization](/img/68/92ee1ff47428e17aca0feb0e33382e.png)
[2022 dark horse programmer] SQL optimization
随机推荐
Unity获取资源路径
Common cluster scripts
[ros2] Why use ros2? Introduction to ros2 system characteristics
Blue Bridge Cup SCM module code (LED) (code + comments)
48 张图 | 手摸手教你微服务的性能监控、压测和调优
Tp6 interface returns three elements
Blue Bridge Cup SCM module code (external interrupt) (code + comment)
Design of PWM breathing lamp based on FPGA
keil debug查看变量提示not in scope
'how do I create an enumeration with constant values in rust?'- How can I create enums with constant values in Rust?
Too beautiful promise because too young
[ACNOI2022]王校长的构造
Jameswebb Space Telescope goes into operation to help study interstellar objects
[tool sharing] a software that pays equal attention to appearance and skills
Event registration | Apache pulsar x kubesphere online meetup is coming
Atomic alpha development board -- SD card and EMMC burning tool
ES can finally find brother Wukong!
Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
Your local changes to the following files would be overwritten by merge: .vs/slnx.sqlite