当前位置:网站首页>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边栏推荐
- Jameswebb Space Telescope goes into operation to help study interstellar objects
- How to record a database [closed] - how to document a database [closed]
- 想买股票去哪个证券公司开户更快更安全
- 破万,我用了六年!
- Understand ZBrush carving software and game modeling analysis
- 【一起上水硕系列】Day 4
- Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
- [he doesn't mention love, but every word is love]
- Tp6 interface returns three elements
- PHP converts strings to hex and hex to string - PHP convert string to hex and hex to string
猜你喜欢

Pratique de gestion hiérarchique basée sur kubesphere

Drawing shp files using OpenGL

原子Alpha开发板--SD卡和emmc烧录工具

Derivation of COS (a-b) =cosa*cosb+sina*sinb

2022 biological fermentation Exhibition (Jinan), which is a must read before the exhibition. The most comprehensive exhibition strategy will take you around the "fermentation circle"

Love Terminator

活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭

【xxl-job】池塘水绿风微暖,记得玉真初见面
![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]

Design of PWM breathing lamp based on FPGA
随机推荐
Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
深入解析 Apache BookKeeper 系列:第三篇——读取原理
Design of PWM breathing lamp based on FPGA
赚够钱回老家吗
Streaming a large file using PHP
Period to string [repeat] - period to string [duplicate]
Derivation of COS (a-b) =cosa*cosb+sina*sinb
Hongmeng learning notes: creating layouts using XML
ASP. Net core - Safety of asynclocal in asp NET Core
【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》
Jameswebb Space Telescope goes into operation to help study interstellar objects
Query JSON data in MySQL table
Ctfhub web - divulgation d'informations - traversée du Répertoire
Ctfhub web information disclosure directory traversal
Blue Bridge Cup SCM module code (LED) (code + comments)
[ros2] Why use ros2? Introduction to ros2 system characteristics
PHP converts strings to hex and hex to string - PHP convert string to hex and hex to string
Report on development status and investment strategy recommendations of global and Chinese graphite polystyrene board industry 2022-2028
Your local changes to the following files would be overwritten by merge: .vs/slnx.sqlite
Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]