寻找付费时间的javascript功能 [英] Looking for paid-time-off javascript function

查看:70
本文介绍了寻找付费时间的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

推荐答案

Daniela Nii写道:
Daniela Nii wrote:
你好那里,

我正在寻找一个人可能已经编写的javascript函数来计算付费时间。

给定的是开始和结束日期和时间。我需要计算
带薪休假。这意味着公式需要足够聪明才能弄清楚周期内的星期六和星期日,并从
时间段中减去时间。

有人要分享一些代码和我一起或者你可以指出我正确的方向来编写这个功能吗?
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?




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

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

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

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

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


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

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


-

兰迪

机会有利于准备的心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq/



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/


JRS:文章< Jg **************** @ newsread2.news.pas.earthlink .n et>,

在新闻中看到:comp.lang.javascript,Daniela Nii

< da ********* @ earthlink.net>发表于2004年1月28日星期三23:07:21: -
JRS: In article <Jg****************@newsread2.news.pas.earthlink.n et>,
seen in news:comp.lang.javascript, Daniela Nii
<da*********@earthlink.net> posted at Wed, 28 Jan 2004 23:07:21 :-
我正在寻找一个人可能已经编写的javascript函数来计算付费时间 - 关闭。

给出的是开始和结束日期和时间。我需要计算
带薪休假。这意味着公式需要足够聪明才能弄清楚周期内的星期六和星期日,并从
时间段中减去时间。
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.




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


< 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.


谢谢,Stockton博士,

这些日期功能是正确的方向。我会看看是否可以根据我的目的调整它们。


Daniela


" John Stockton博士; < SP ** @ merlyn.demon.co.uk>在消息中写道

新闻:YI ************** @ merlyn.demon.co.uk ...
Thanks, Dr. Stockton,

Those date functions are in the right direction. I will see if I can adjust
them for my purpose.

Daniela

"Dr John Stockton" <sp**@merlyn.demon.co.uk> wrote in message
news:YI**************@merlyn.demon.co.uk...
JRS:In文章< Jg **************** @ newsread2.news.pas.earthlink.n et>,
在新闻中看到:comp.lang.javascript,Daniela Nii
< da ********* @ earthlink.net>发表于2004年1月28日星期三23:07:21: -
JRS: In article <Jg****************@newsread2.news.pas.earthlink.n et>,
seen in news:comp.lang.javascript, Daniela Nii
<da*********@earthlink.net> posted at Wed, 28 Jan 2004 23:07:21 :-
我正在寻找一个人可能已经编写的javascript函数来计算付费时间 - 关闭。

给出的是开始和结束日期和时间。我需要计算
带薪休假。这意味着该公式需要足够智能,以便在该时段内的星期六和星期日计算
,并从时间段
中减去时间。
请参阅下面的常见问题和签名。

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

-
?约翰斯托克顿,英国萨里。 ?@merlyn.demon.co.uk Turnpike v4.00 IE
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 outthe Saturdays and Sundays within the period and subtract the time from thetime period.
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的
新闻常见问题解答: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 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.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆