All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields
TimeDurationUtil Class Reference

Static Public Member Functions

static resolveNewTimeStampForDuration ($initialTimeStamp, $durationInterval, $durationSign, $durationType)
 
static getValueAndLabels ()
 
static getDateOnlyValueAndLabels ()
 

Data Fields

const DURATION_SIGN_POSITIVE = 'Positive'
 
const DURATION_SIGN_NEGATIVE = 'Negative'
 
const DURATION_TYPE_MINUTE = 'Minute'
 
const DURATION_TYPE_HOUR = 'Hour'
 
const DURATION_TYPE_DAY = 'Day'
 
const DURATION_TYPE_WEEK = 'Week'
 
const DURATION_TYPE_MONTH = 'Month'
 
const DURATION_TYPE_YEAR = 'Year'
 

Detailed Description

Helper functionality for working with time duration and calculating durations

Definition at line 40 of file TimeDurationUtil.php.

Member Function Documentation

static resolveNewTimeStampForDuration (   $initialTimeStamp,
  $durationInterval,
  $durationSign,
  $durationType 
)
static
Parameters
integer$initialTimeStamp
integer$durationInterval
string$durationSign
string$durationType
Returns
integer timestamp based on durationInterval, durationSign, and durationType

Definition at line 65 of file TimeDurationUtil.php.


The documentation for this class was generated from the following file:
Generated on Mon Mar 30 2020 07:11:22