This document is for an older version of

Calendar

.

View latest version →

Calendar Calendar for Craft

Duration object

Properties

  • humanReadable #
    • returns a human readable string of the duration, e.g. - 2d 1h 15m
  • years #
    • returns an int of the difference in years
  • months #
    • returns an int difference in months
  • days #
    • returns an int difference in days
  • hours #
    • returns an int difference in hours
  • minutes #
    • returns an int difference in minutes
  • seconds #
    • returns an int difference in seconds