Skip to content

Reference cPeriod

Rainer Stötter edited this page Mar 27, 2018 · 1 revision

Reference of the library libdatephp

namespace

  • The namespace of the library libdatephp is libdatephp.

overview

  • The library consists of several classes, which are sharing the namespace libdatephp:

    • The class cPeriod manages a period of time

The API documentation

  • If you want to use the classes in your projects, then use the user reference: ApiIndex
  • If you want to help to maintain the classes in your projects, then use the developer reference: DevApiIndex

Functional Groups of the class cPeriod

Constructing new cPeriod objects

cPeriod::__construct()

The cPeriod data type and it's components

cPeriod::GetFirst() cPeriod::GetLast() cPeriod::GetLen() cPeriod::GetN()

String representation

cPeriod::AsString()

setting the dates

cPeriod::Set() cPeriod::SetFirst() cPeriod::SetLast() cPeriod::SetLen() cPeriod::SetToday()

Moving on the time line

cPeriod::AddMonths() cPeriod::AddWeeks() cPeriod::AddYears() cPeriod::Dec() cPeriod::Inc() cPeriod::Skip()

Comparision

cPeriod::Contains() cPeriod::EndsAfter() cPeriod::EndsBefore() cPeriod::Overlaps() cPeriod::SameEnd() cPeriod::SameStart() cPeriod::StartsAfter() cPeriod::StartsBefore()

Executing user defined functions

cPeriod::ForEachDate() cPeriod::ForEachWeekday()

Working with days

cPeriod::NthDay() cPeriod::JustOneDay()

Working with Weeks

cPeriod::GoBOW() cPeriod::GoEOW() cPeriod::NthWeek() cPeriod::PassedWeeks()

Working with Months

cPeriod::GoBOM() cPeriod::GoEOM() cPeriod::NthMonth() cPeriod::PassedMonths()

Working with Quarters

cPeriod::GoBOQ() cPeriod::GoEOQ() cPeriod::NthQuarter() cPeriod::PassedQuarters()

Working with Years

cPeriod::GoBOY() cPeriod::GoEOY() cPeriod::NthYear() cPeriod::PassedYears()

Adjusting

cPeriod::Adjust()

cPeriod::GetDiff()

Weekdays

cPeriod::GetWeekdayCount()

The state of the cPeriod

cPeriod::IsValid()

serialization

cPeriod::PrintOn() cPeriod::ScanFrom()


Clone this wiki locally