Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of vench  >  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: 11 months 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.040.0);
echo 
'ASC '.$astroCalendar->getLatinNameByDeg($ASC).', MC '.$astroCalendar->getLatinNameByDeg($MC).', DSC '.$astroCalendar->getLatinNameByDeg($DSC).', IC '.$astroCalendar->getLatinNameByDeg($IC);
?>