Navigation:  Module 1 - Energy Accounting > Accounts & Invoices Tab > User Defined Components > Functions >

TimeSpan Function

Previous page Next page
  rev. 2011-02-09        

TimeSpan

Description:

Creates an object representing a specific span of time.

Syntax:

TimeSpan(hour, minute, second)

Type:

TimeSpan

Arguments:

Argument

Type

Description

hour

Numeric

The number of hours

minute

Numeric

The number of minutes.

second

Numeric

The number of seconds.

Returns:

A TimeSpan which represents the specified span of time.

Examples:

To create a time span representing 12 hours and 30 minutes.

Expression

Result

TimeSpan(12,30,0)

12:30:00

 

To create a date representing Jan 20 2009 8:45 AM

Expression

Result

Date(2009,1,20) + TimeSpan(8,45,0)

1/20/2009 8:45:00 AM

 



S2_TimeSpan_Function         ©2014 Managing Energy Inc.