关于根据营业时间计算小时数的代码的问题

关于根据营业时间计算小时数的代码的问题

本文介绍了关于根据营业时间计算小时数的代码的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库中有一些代码可以计算两个日期/时间字段之间的时间,还可以计算周末和假日。我没有创建这个代码,所以我有点不知道为什么它不能正常工作。


我有桌子,一个叫工作时间,它有两个字段,wStart和wEnd。在这些领域,我有08:30和18:30。另一个表有假期,两个字段,hName,它有假日的名字,hDate,它是假日的日期。


这是代码:

展开 | 选择 | Wrap | 行号

解决方案




I have some code in my database that calculates time between two date/time fields and also calculates the weekends and holidays. I did not create this code, so I''m at a bit of a loss why it''s not working correctly.

I have to tables, one is called Working Hours, which has two fields, wStart and wEnd. In those fields, I have 08:30 and 18:30. The other table has the Holidays, two fields, hName, which has the name of the holiday, and hDate, which is the date of the holiday.

Here is the code:

Expand|Select|Wrap|Line Numbers

解决方案




这篇关于关于根据营业时间计算小时数的代码的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 10:14
查看更多