Navigation:  Module 1 - Energy Accounting > Accounts & Invoices Tab > User Defined Components > Object Types > TimeSpan Object Type >

FractionOf Method

Previous page Next page
  rev. 2011-02-09        

Description:

Returns the fraction of time represented by this instance in relation to another.

Syntax:

 [TimeSpan Object].FractionOf([TimeSpan Object])

Arguments:

Argument

Type

Description

Time Span

TimeSpan

The time span to compare.

Returns:

The fraction of time represented by this instance in relation to another.

Examples:

To get the fraction that 12 hours represents in comparison to 24 hours.

Expression

Result

TimeSpan(12,0,0).FractionOf(TimeSpan(24,0,0))

0.5



Snippet_FractionOf_Method         ©2014 Managing Energy Inc.