You are here

function cmfcCalendarV1Gregorian::jGetDate in Calendar Systems 7.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::jGetDate()
  2. 8.2 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::jGetDate()
  3. 5 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::jGetDate()
  4. 6.3 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::jGetDate()
  5. 6 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::jGetDate()
  6. 7.3 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::jGetDate()
  7. 7 calendar/v1/calendarSystems/gregorian.class.inc.php \cmfcCalendarV1Gregorian::jGetDate()

File

calendar/v1/calendarSystems/gregorian.class.inc.php, line 203

Class

cmfcCalendarV1Gregorian
@desc

Code

function jGetDate($timestamp = "", $transNumber = 1) {
  if ($timestamp == "") {
    $timestamp = $this
      ->phpTime();
  }
  return array(
    0 => $timestamp,
    "seconds" => jdate("s", $timestamp, $transNumber),
    "minutes" => jdate("i", $timestamp, $transNumber),
    "hours" => jdate("G", $timestamp, $transNumber),
    "mday" => jdate("j", $timestamp, $transNumber),
    "wday" => jdate("w", $timestamp, $transNumber),
    "mon" => jdate("n", $timestamp, $transNumber),
    "year" => jdate("Y", $timestamp, $transNumber),
    "yday" => cmfcDateTime::yearTotalDays(jdate("m", $timestamp, $transNumber), jdate("d", $timestamp, $transNumber), jdate("Y", $timestamp, $transNumber)),
    "weekday" => jdate("l", $timestamp, $transNumber),
    "month" => jdate("F", $timestamp, $transNumber),
  );
}