[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
VS_DateTime()        Returns a numeric "date/time" value                  NEW

Description:

  VS_DateTime() returns a numeric "date/time" value for a specified date
  and time.

Syntax:     

  n_DateTime = VS_DateTime( d_Date, c_Time )

Pass:       

  d_Date is a date expression (ex: DATE()) that should contain the
  date of the value you want returned from VS_DateTime().

  c_Time is a character-time expression (ex: TIME()) that should
  contain the time of the value you want returned from VS_DateTime().

Return:     

  n_DateTime is a numeric value that will represent the date and
  time you specified in your call to VS_DateTime().

Notes:      

  If you are going to store the numeric "date/time" in a database, you
  should define the field as a type of NUMERIC with a length of 16 and
  decimals of 5.

Example:    

  n_Start = VS_DateTime( DATE(), TIME() )
  wait
  n_ElapSecs = VS_ElapSecs( n_Start, VS_DateTime(DATE(),TIME()) )
  QOut( "You waited ", n_ElapSecs, " seconds!" )
  ...

Usage:      

  VS_DateTime() allows you to retrieve a date/time all in one variable
  instead of Clipper's cumbersome DATE() and TIME() functions.

See Also: VS_GetDate() VS_GetTime()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson