Calendar Documentation

Learn the basics, and get to know Calendar inside and out.

Calendar 1.x Docs

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