Documentation

DemoTest extends BaseTest
in package

Table of Contents

Methods

testGetAsTheMostAppropriateHumanValue()  : mixed
100000 seconds:
testGetInYearsMonthsDaysHoursMinutesOrSeconds()  : mixed
100000 seconds as years, months, days, hours, minute or seconds
testGetNumberOfYearsMonthsDaysHoursHoursMinutesSeconds()  : mixed
100000 seconds is 1 day, 3 hours, 46 minutes and 40 seconds

Methods

testGetAsTheMostAppropriateHumanValue()

100000 seconds:

public testGetAsTheMostAppropriateHumanValue() : mixed
  • represented as a single time unit is 1 day
  • represented as two time units is 1 day 4 hours
  • represented as three time units is 1 day 3 hours 47 minutes

testGetInYearsMonthsDaysHoursMinutesOrSeconds()

100000 seconds as years, months, days, hours, minute or seconds

public testGetInYearsMonthsDaysHoursMinutesOrSeconds() : mixed

Note: these are human-readable convenience representatons not exact

100000 seconds is strictly 1.16 days. As far as convenience is concerned, that's 1 day. 100000 seconds is strictly 27.78 hours. As far as convenience is concerned, that's 28 hours.

testGetNumberOfYearsMonthsDaysHoursHoursMinutesSeconds()

100000 seconds is 1 day, 3 hours, 46 minutes and 40 seconds

public testGetNumberOfYearsMonthsDaysHoursHoursMinutesSeconds() : mixed

        
On this page

Search results