Skip to content

class Astro_Sunrise

Oliver edited this page Apr 26, 2020 · 2 revisions

www/includes/sunrise.inc.php


Astro_Sunrise

Package

zorg\Layout

author

version

  • $Id: sunrise.inc.php 208 2004-05-08 17:12:27Z bb $

date

  • 14.12.2003

var

  • Array
  • Array
  • Array
  • Array
  • Array
  • Array
  • Array
  • Array
  • Array

Overview

Public Properties

last_utc() | lat() | lon() | mday() | month() | R() | twilight() | tz() | yday() | year() |

Constants

No constants found

Public Methods

__construct() | calcSunrise() | getCoords() | getDate() | getLastSwatchBeat() | getSunrise() | getSunset() | getTimezone() | setCoords() | setDate() | setTimestamp() | setTimezone() | setTwilight() |

Properties

last_utc

time calculation

public $last_utc : int

Array: UNIX timestamp of last calculation

lat

coordinates to calculate sunrise/sunset for

public $lat : int

Array: -90..+90; > 0 is north of the equator

lon

coordinates to calculate sunrise/sunset for

public $lon : int

Array: -180..+180; > 0 is east of Greenwich

mday

date

public $mday : int

Array: day of the month

month

date

public $month : int

Array

R

Twilight calculation

public $R : int

Array: radius used for twilight calculation

twilight

Twilight values

public $twilight : array

Array: Array containing sunrise/sunset, civil twilight, nautical twilight, astronomical twilight

tz

date

public $tz : int

Array: timezone offset in hours, > 0 is east of GMT, < 0 is west

yday

date

public $yday : int

Array: day of the year

year

date

public $year : int

Array: 4 digits, please

Methods

__construct()

Astro Sunrise Twilight setzen

public __construct() : mixed

calcSunrise()

public calcSunrise(mixed $isRise) : mixed

getCoords()

Get coordinates

public getCoords() : mixed

See also

  • \self::setCoords()

getDate()

Get date

public getDate() : mixed

See also

  • \self::setDate()

getLastSwatchBeat()

public getLastSwatchBeat() : mixed

getSunrise()

public getSunrise() : mixed

getSunset()

public getSunset() : mixed

getTimezone()

public getTimezone() : mixed

setCoords()

Set coordinates

public setCoords(int $lat, int $lon) : mixed

Tags
  • var: Array Store current Latitude Value
  • var: Array Store current Longitude Value

setDate()

Set date

public setDate(int $year, int $month, int $mday) : mixed

Tags
  • var: Array
  • var: Array
  • var: Array

setTimestamp()

Set timestamp

public setTimestamp(int $time) : mixed

See also

  • \self::setDate()

setTimezone()

public setTimezone(mixed $tz) : mixed

setTwilight()

public setTwilight(mixed $type) : mixed


\ » Classes » Astro_Sunrise

Clone this wiki locally