?? vbs208.htm
字號:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML><HEAD><TITLE>TimeValue Function</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="PRODUCT" CONTENT="Visual Basic Scripting Edition">
<META NAME="TECHNOLOGY" CONTENT="SCRIPTING">
<META NAME="CATEGORY" CONTENT="Language Reference">
<META NAME="Keywords" CONTENT="TimeValue function,times converting,times"><META NAME="Description" CONTENT="TimeValue Function"></HEAD><BODY BGCOLOR=FFFFFF LINK=#0033CC>
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<FONT FACE="Verdana, Arial, Helvetica" SIZE=2>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR VALIGN=TOP><TD WIDTH=360>
<FONT SIZE=1 COLOR=#660033>Microsoft® Visual Basic® Scripting Edition</FONT><BR>
<FONT SIZE=5 COLOR=#660033><B>TimeValue Function</B></FONT>
</TD>
<TD ALIGN=RIGHT>
<FONT SIZE=2> <A HREF="vbstoc.htm">Language Reference</A> <BR>
<A HREF="vbs16.htm">Version 1</A> <P></FONT>
</TD></TR>
</TABLE>
<FONT SIZE=2><P>
<A HREF="vbs209.htm">See Also</A></FONT>
<HR NOSHADE SIZE=1>
<H5>Description</H5>
<BLOCKQUOTE>Returns a <b>Variant</b> of subtype <b>Date</b> containing the time.</BLOCKQUOTE>
<H5>Syntax</H5>
<BLOCKQUOTE><b>TimeValue(</b><i>time</i><b>)</b><P>
The <i>time</i> argument is usually a <A HREF="vbs0.htm#defStringExpression">string expression</A> representing a time from 0:00:00 (12:00:00 A.M.) to 23:59:59 (11:59:59 P.M.), inclusive. However, <i>time</i> can also be any expression that represents a time in that range. If <i>time</i> contains <A HREF="vbs0.htm#defNull"><B>Null</B></A>, <b>Null</b> is returned.</BLOCKQUOTE><P>
<H5>Remarks</H5>
<BLOCKQUOTE>You can enter valid times using a 12-hour or 24-hour clock. For example, "2:24PM" and "14:24" are both valid <i>time</i> arguments.<P>
If the <i>time</i> argument contains date information, <b>TimeValue</b> doesn't return the date information. However, if <i>time</i> includes invalid date information, an error occurs.</BLOCKQUOTE>
<hr noshade size=1>
<p align=center><em><a href="../../common/colegal.htm">© 1997 by Microsoft Corporation. All rights reserved.</a></em></p>
</FONT></BODY></HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -