Thursday, September 23, 2010

VBScript DateDiff Function


DateDiff function
Back to the time interval between two dates.
DateDiff (interval, date1, date2 [, firstdayofweek [, firstweekofyear]])
DateDiff function syntax has the following parameters:
Parameter
interval
Required. String expression that is used to calculate the time between date1 and date2 interval. The values, see "Settings" section.
date1, date2
Required. Date of expression. Used to calculate the two dates.
Firstdayofweek
Optional. The first day of the week specified constant. If not specified, the default is Sunday. The values, see "Settings" section.
Firstweekofyear
Optional. Designated the first week of the year constant. If not specified, the default location for the January 1st week. The values, see "Settings" section.
Set up
interval parameter can have the following values:
Setting Description
yyyy Year
q Quarterly
n months
y number of days a year
d day
w the number of days a week
ww Week
h hours
m min
s seconds

firstdayofweek parameter can have the following values:
Constant Value Description
use of regional language support vbUseSystem 0 (NLS) API set.
vbSunday 1 Sunday (default)
vbMonday 2 Monday
vbTuesday 3 Tuesday
vbWednesday 4 Wednesday
vbThursday 5 Thursday
vbFriday 6 Friday
vbSaturday 7 Saturday

firstweekofyear parameter can have the following values:
Constant Value Description
use of regional language support vbUseSystem 0 (NLS) API set.
vbFirstJan1 1 by the Jan. 1 week where the (default).
vbFirstFourDays 2 by the New Year at least four days in the first week.
vbFirstFullWeek 3 in the new year by the first full week.

Explain
DateDiff function is used to determine between the two dates specified number of time intervals. For example, you can use the DateDiff calculation of the number of days difference between two dates, or the day of the year the number of weeks between the last day.
To calculate the difference between date1 and date2 number of days, you can use "the number of days a year" ("y") or "Day" ("d"). When the interval is "the number of days a week" ("w") when, DateDiff returns the number of weeks between two dates. If date1 is Monday, the Monday before date2 DateDiff to calculate the number. This result contains does not contain date2 date1. If the interval is the "Week" ("ww"), the DateDiff function returns the calendar in the number of weeks between two dates. Between date1 and date2 function calculates the number of Sundays. If date2 is Sunday, DateDiff to calculate date2, but even if date1 is Sunday, it will not count date1.
If date1 is later than date2, the DateDiff function returns a negative number.
firstdayofweek 鍙傛暟浼氬浣跨敤鈥渨鈥濆拰鈥渨w鈥濋棿闅旂鍙风殑璁$畻浜х敓褰卞搷銆?br />濡傛灉 date1 鎴?date2 鏄棩鏈熸枃瀛楋紝鍒欐寚瀹氱殑骞村害浼氭垚涓烘棩鏈熺殑鍥哄畾閮ㄥ垎銆備絾鏄鏋?date1 鎴?date2 琚寘鎷湪寮曞彿 ( ) 涓苟涓旂渷鐣ュ勾浠斤紝鍒欏湪浠g爜涓瘡娆¤绠?date1 鎴?date2 琛ㄨ揪寮忔椂锛屽皢鎻掑叆褰撳墠骞翠唤銆?This can be written for different years of the program code.
鍦?interval 涓衡?骞粹?锛堚?yyyy鈥濓級鏃讹紝姣旇緝 12 鏈?31 鏃ュ拰鏉ュ勾鐨?1 鏈?1 鏃ワ紝铏界劧瀹為檯涓婂彧鐩稿樊涓?ぉ锛孌ateDiff 杩斿洖 1 琛ㄧず鐩稿樊涓?釜骞翠唤銆?br />
涓嬮潰鐨勭ず渚嬪埄鐢?DateDiff 鍑芥暟鏄剧ず浠婂ぉ涓庣粰瀹氭棩鏈熶箣闂撮棿闅斿ぉ鏁?
Function DiffADate(theDate)聽 DiffADate = 浠庡綋澶╁紑濮嬬殑澶╂暟: & DateDiff(d, Now, theDate)End Function






相关链接:



DivX to VOB



web Seo 2



On the memory leak (1)



Servlet 2.5 Version Of The Termination Response



Fast roaming Illustrator 10 (1)



Maxthon financial pages and information on-line grand



The other side of performance evaluation [1]



Picked Trace And Ping Tools



Premier Server Applications



FLV to 3GP



Visuanl C # 2005 Quick Start of the while statement (1)



Yunjie: Mr. Chen in the "CORRECTION"?



TS to WMV



Simple Management And Distribution



Brief Remote Computing



Tuesday, September 21, 2010

Baidu's sensual journey



160 000 Union website into the side "of large-size LCD screen", Baidu began to sell video advertising collective advantage.

CNET China President Wang Lu recent good mood, before a burst of Intel China president Yang himself at the table told him that Intel will be reduced in the next two years until the final stop TV ads, and all the ads are to the Internet platform up, which he operated the IT professional website is certainly good news.

The good news come one after another. September 13, Baidu launched "Baidu TV" online video advertising services, announced that 160,000 Baidu Union web site into a side "LCD screen" television ads, while CNET is one of the major online media platform 1.

160 000 Web site, which is interactive through the point, as the science and technology, before the first video they struggled to develop online video advertising that some years the company can match the media resources, Baidu had a sudden end to the brand advertisers, They invested in television ads for the Internet to any one corner.

Diversion canal

Now, who could refuse to sensual and elegant video? Baidu is no exception.

Although it and the world's largest search engine giant Google search for information using text links and paid search ads that match the ads to create the advertising industry in the history of the "long tail miracle", but including graphics Banner ads, rich media ads and video ads display of class, including three forms of ads are still the bulk of the Internet advertising: first quarter of 2007 online ad spending in China 1.708 billion yuan, the display of the type of advertisements accounted for 53.1%, while the paid search advertising accounted for only 26.1%. Tentacles extend their profit paid search, display the type of advertisements inserted into the field, is the inevitable choice for Baidu and Google.

The spread of broadband, advances in technology, Web2.0 rise to the Internet as an interactive multimedia network, display the type of advertisements are from Banner to the network video graphics upgrade, not to mention, more and more consumers are moving away from TV spend more time on the Internet, to television advertising has become possible to move to the Internet.

Large amounts of data have shown this trend. The data from research firm iResearch Show: 2006 TV ad 40.4 billion yuan, while Internet advertising is about 6.0 billion, while the same year, an increase of television advertising fell 8.2%, while Internet advertising the last 3 years the average increase of 75% .

Statement in accordance with Baidu, Baidu TV allows advertisers to run video in the ads, not as they used to consider the situation of the site itself, only to tell what time Baidu need, where to find what the target audience, Baidu could be through the web site content, part, reading the environment and match keywords to find the most appropriate page, then Baidu TV as the exclusive business partner with the advertising media to go out and monitor the television ratings.

Brand advertisers, this at least help them run TV ads than ever before to find a more accurate target audience, and the audience's attention and more focused. Baidu TV released in 45 days before the trial held in investment activities, the FAW-VW a 90-second television ads on the Internet an average of 60 seconds to watch, it is almost impossible now TV platform events. In addition, the network is an interactive platform, it was "sound and light" is ready for video ads arouse interest, the click of a mouse, can immediately make a purchase, participate in games, to answer the questionnaire and a series of interactive activities, a small nurse L'Oreal attracted 10% of ad clicks are answered the questionnaire.

In Baidu view, their role now, the same as in the vast sea-like TV commercials and small streams like online video advertising diversion canal between. Baidu CFO Shawn Wang, Baidu has repeatedly compared to the U.S. cable TV operators, compared to Baidu TV is limited television network to publish content in different channels of TV advertising.

Collective strength

While many have long been gathering video site, but is still deadlocked in the battle for eyeballs, not to be seen in the video advertising. Tudou first set up to run in the team seems to the forefront, just recently, it received an order of Intel's large ads. Be interesting, in the announcement, while potato network also said Sweden will be buying Intel server chips.

Clearly, Baidu TV this time to mass media network Focus mode to enter the domestic chaos of video advertising, you can squeeze and reduced the attractiveness of other video sites, attracting the same time have the advantage of collective advertisers. Also, with video Web site monthly 1 million yuan compared to the cost of broadband server, this model allows Baidu TV has a streaming media player of the cost advantage, thereby advertising the price level down, to establish the market benchmark price, the market standard setters.

Should not be overlooked is that the ratings show than the price charged by television advertising, Baidu TV is watched by ads are effective charges - Baidu users to view TV ad more than five seconds shall be effective ratings. This also means that the future of the auto auction platform with Baidu, Baidu TV advertising is likely to bid to carry out the auction, making advertising more closely linked to the price and effectiveness.

However, despite the huge network of media resources, Baidu TV is able to gain a firm foothold in the market, ultimately have to depend on convincing advertisers is open wallet. To know that, despite the declining effectiveness of traditional television advertising, but the formation of third-party monitoring of its broadcast over the years, the effect evaluation method for advertisers on the cost of the orientation of an idea, who claims to be accurate interactive online advertising, especially video advertising so far has not Unified recognized evaluation criteria.

To dispel such doubts, Baidu has made a statement, will provide users with full monitoring broadcast to advertisers in detail about each ad viewing behavior and the state; At the same time, Baidu TV will also work with AC Nielsen, CCTV Sofo Swiss cooperation with third-party ratings research company monitoring broadcast.

It seems that this side of "big screen" is clearly staged show of the curtain was opened.







Recommended links:



Picked NEWSGROUP Clients



.avi To .mp4 Converter



E-cology in the Pan Micro Series 54



Flash and Silverlight Comparison of multi-domain measurement



Homes To Enjoy Digital Medical



Desktop Shop



Lists Firewall And Proxy Servers



Visual Studio 2010 will be FORMALLY included F #



psp mp4 converter



Reduce Carbon emissions, EastFax paperless fax you the more green the more resounding



Used to create automatic play music Listening Pros CD



what Is avchd



Youtube M2ts



Thought to help IN the day to enjoy from under the rising voices