Predefined Constants

- « Resource Types

- Examples »

- PHP Manual
- Date/Time
- Predefined Constants

# Predefined Constants

The `DATE_` constants are defined and they offer standard date representations, which can be used along with the date format functions (like date()).

Following constants specify a format returned by functions date_sunrise() and date_sunset().

`SUNFUNCS_RET_TIMESTAMP` (int)
  Timestamp
`SUNFUNCS_RET_STRING` (int)
  Hours:minutes (example: 08:02)
`SUNFUNCS_RET_DOUBLE` (int)
  Hours as floating point number (example 8.75)