当前位置:网站首页>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边栏推荐
- How do I know if mysqlnd is an active driver- How to know if MySQLnd is the active driver?
- 【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》
- Astronomers may use pulsars to detect merged supermassive black holes
- How to find happiness in programming and get lasting motivation?
- [2022 dark horse programmer] SQL optimization
- 'how do I create an enumeration with constant values in rust?'- How can I create enums with constant values in Rust?
- The upper and lower lines of the shell are merged into one line
- Bcrypt password encryption kalrry
- [ros2] Why use ros2? Introduction to ros2 system characteristics
- Esp8266 & sg90 steering gear & Lighting Technology & Arduino
猜你喜欢

弱大数定理的意义与证明

keil debug查看变量提示not in scope

父爱的表达方式

I have used it for six years!

Drawing shp files using OpenGL
![Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]](/img/cd/c8be09eca7b41407b0ca1f3b4f3fe8.jpg)
Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]

Efficient exploration | an application practice of ES geographical location query
![[轻松学会shell编程]-5、计划任务](/img/6f/8067d4201f0c2e7a692d89885e3ad9.png)
[轻松学会shell编程]-5、计划任务

Three laws of go reflection

基于 KubeSphere 的分级管理实践
随机推荐
Blue Bridge Cup SCM module code (matrix key) (code + comments)
使用OpenGL绘制shp文件
Your local changes to the following files would be overwritten by merge: .vs/slnx.sqlite
The Rust Programming Language
Several schemes of traffic exposure in kubernetes cluster
[ros2] Why use ros2? Introduction to ros2 system characteristics
CTFHub-Web-信息泄露-目錄遍曆
Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]
【C语言】给字符串增加分隔符
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中
Why did Yanjing Beer come here?
Coffee script unmatched outent error
太美的承诺因为太年轻
The most basic difference between clustering and classification.
lotus v1.16.0-rc2 Calibration-net
Shandong finds clean energy that can be used by China for 3800 years? You should know the truth first
【工具分享】一款颜值与技能并重的软件
Direct select sort and quick sort
How to record a database [closed] - how to document a database [closed]
Message queue table structure for storing message data