本文介绍了寻找付费时间的javascript功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我正在寻找一个javascript函数,有人可能已经用

来计算付费时间。


给出的是开始和结束日期和时间。我需要计算

付费时间。这意味着公式需要足够智能,以便在周期内和星期日内计算出
,并从

时间段中减去时间。


有没有人可以与我分享一些代码,或者你能指出我正确的方向来写这个功能吗?


谢谢一堆,

Daniela

Hi there,

I am looking for a javascript function that someone might have already
written to calculate the paid-time-off.

Given are the start and end date and time. I need to calculate the
paid-time-off. That means the formula needs to be smart enough to figure out
the Saturdays and Sundays within the period and subtract the time from the
time period.

Has anybody some code to share with me or can you point me into the right
direction to get this functionality written?

Thanks a bunch,
Daniela

推荐答案




首先解释如何手动计算它,然后发布它。

有人可能愿意写它,也许不是。但是简单地说我需要付出假期。计算器正在拉伸它。

第一年,我得到5天带薪假期(1个日历周)

第二年,我得到10天带薪假期(2日历周)

第三年,我得到15天带薪休假(3个日历周)


我被雇用以来一直在那里所以我会得到3个日历周支付

这个日历年的时间。我怀疑这适合你的情况。


-

兰迪

机会有利于准备的心灵

comp.lang.javascript常见问题 -



Start by explaining how you would manually calculate it, and post it.
Someone might be willing to write it, maybe not. But to simply say "I
want a paid time off" calculator is stretching it a bit.
The first year, I get 5 days paid vacation (1 calendar week)
The second year, I get 10 days paid vacation (2 calendar weeks)
The third year, I get 15 days paid vacation (3 calendar weeks)

I have been there since I got hired so I will get 3 calendar weeks paid
time off this calendar year. I doubt that fits your situation though.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/





请参阅下面的常见问题解答和签名。


< URL:http://www.merlyn.demon.co.uk/js-date7.htm#CWD>


-

?约翰斯托克顿,英国萨里。 ?@merlyn.demon.co.uk Turnpike v4.00 IE 4?

< URL:http://jibbering.com/faq/> Jim Ley的新闻常见问题解答:comp.lang.javascript

< URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr数学,日期,来源。

< URL:http://www.merlyn.demon.co.uk/> TP / BP / Delphi / jscr /& c,FAQ项目,链接。



See FAQ and sig below.

<URL:http://www.merlyn.demon.co.uk/js-date7.htm#CWD>

--
? John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ?
<URL:http://jibbering.com/faq/> Jim Ley''s FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.




4? <的URL:http://jibbering.com/faq/> Jim Ley的
新闻常见问题解答:comp.lang.javascript< URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr数学,日期,
来源。 <的URL:http://www.merlyn.demon.co.uk/> TP / BP / Delphi / jscr /& c,FAQ项目,


4 ? <URL:http://jibbering.com/faq/> Jim Ley''s FAQ fornews:comp.lang.javascript <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates,sources. <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items,



链接。


links.


这篇关于寻找付费时间的javascript功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 10:26
查看更多