PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Raskin Veniamin   Vs Astro Calendar   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Vs Astro Calendar
Get astrological details for a given date
Author: By
Last change: add comment
Date: 10 years ago
Size: 836 bytes
 

Contents

Class file image Download
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

require_once 'VsAstroCalendar.php';

$astroCalendar = VsAstroCalendar::instance();
//set date
$astroCalendar->init(1931,9,6,12,8,1,-4);
echo
'Date: '.$astroCalendar->getDate();
echo
'<br/>';
echo
'getMoonDay '.$astroCalendar->getMoonDay().' | ';
echo
'getMoonDayByHervi '.$astroCalendar->getMoonDayByHervi().'';

echo
'<br/>';
echo
'getStarTime '.$astroCalendar->getStarTime();
echo
' getJTime '.$astroCalendar->getJTime();
echo
'<br/>';
list(
$ASC, $MC, $DSC, $IC) = $astroCalendar->getAsc(52.0, 40.0);
echo
'ASC '.$astroCalendar->getLatinNameByDeg($ASC).', MC '.$astroCalendar->getLatinNameByDeg($MC).', DSC '.$astroCalendar->getLatinNameByDeg($DSC).', IC '.$astroCalendar->getLatinNameByDeg($IC);
?>