当前位置:网站首页>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边栏推荐
- 燕京啤酒何以至此?
- Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
- Blue Bridge Cup SCM module code (timer) (code + comments)
- Flask 的入门级使用
- 【工具分享】一款颜值与技能并重的软件
- Changing the background color of tab bar - changing the background color of tab bar
- Are you still doing the dishes yourself? Teach you how to make dishwasher controller with single chip microcomputer
- 【一起上水硕系列】Day 4
- 【2022黑马程序员】SQL优化
- レ / leilei
猜你喜欢

Several schemes of traffic exposure in kubernetes cluster

Flask 的入门级使用

了解zbrush雕刻软件,以及游戏建模的分析

Atomic alpha development board -- SD card and EMMC burning tool

【2022黑马程序员】SQL优化

The significance and proof of weak large number theorem

Message queue table structure for storing message data

Expression of fatherly love

Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)

ES can finally find brother Wukong!
随机推荐
有能力的人从不抱怨大环境!
lotus windowPoSt 手动触发时空证明计算
How to configure log4j to only keep log files for the last seven days?
The upper and lower lines of the shell are merged into one line
我们不一样
集群常用群起脚本
[learn FPGA programming from scratch -43]: vision chapter - technology evolution of chip design in the post Moore era -2- evolution direction
Acwing2013. three lines
Derivation of COS (a-b) =cosa*cosb+sina*sinb
基于 KubeSphere 的分级管理实践
Understand ZBrush carving software and game modeling analysis
lotus v1.16.0-rc2 Calibration-net
Blue Bridge Cup SCM module code (LED) (code + comments)
Simple and complete steps of vivado project
[learn shell programming easily]-5. Plan tasks
直接选择排序和快速排序
Blue Bridge Cup SCM module code (matrix key) (code + comments)
Jameswebb Space Telescope goes into operation to help study interstellar objects
The process of making wooden barrels with 3DMAX software: a three-step process
Leetcode 2163. Minimum difference of sum after element deletion