我如何编写一个函数来在QTP中获得公共假期 [英] How do i write a function to get public holiday in QTP

查看:78
本文介绍了我如何编写一个函数来在QTP中获得公共假期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友



请你帮我写一个公共假期的功能。



问候



Mkhensi

Hi friends

May you please help me to write a function that gets a public holiday.

Regards

Mkhensi

推荐答案

这取决于你所居住的国家。你的个人资料说美国,但是你今天刚刚注册,你可能还没有正确设置。



无论如何,这里有一个链接到VB.NET中的CodeProject文章在美国假期处理这个问题。

假期和营业日期计算和翻译 [ ^ ]



本文中的功能无法处理复活节假期的计算,因此如果您需要,你将不得不做一些搜索。



Soren Madsen
It will depend on which country you live in. You profile says USA, but since you just signed up today, you might not have that set correctly yet.

Anyway, here is a link to a CodeProject article in VB.NET that handles this very issue for holidays in the US.
Holidays and business date calculations and translations[^]

The functionality in the article does not handle calculation of Easter holidays, so if you need that, you are going to have to do a little searching.

Soren Madsen


这篇关于我如何编写一个函数来在QTP中获得公共假期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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