source: trunk/FACT++/scripts/tests_n_examples/test_Sun.js@ 18795

Last change on this file since 18795 was 14887, checked in by neise, 12 years ago
I think I moved the tests and examples into its own folder, in order to keep the scripts folder tidy
File size: 689 bytes
Line 
1'use strict';
2var date = new Date(); // Date in UTC
3console.out(date);
4console.out("------------------------------");
5console.out(" - no params: -");
6console.out( JSON.stringify( Sun.horizon() ) );
7console.out('params: ("astro") ');
8console.out( JSON.stringify( Sun.horizon("astro") ) );
9console.out('params: (-12, date) ');
10console.out(JSON.stringify(Sun.horizon(-12, date ) ) ); // nautical
11console.out('params: ("FACT") ');
12console.out(JSON.stringify(Sun.horizon("FACT") ) );
13console.out("------------------------------");
14console.out("-----------time when LidOpen() will work-----------");
15console.out('nautical');
16console.out(JSON.stringify(Sun.horizon("nautical" ) ) ); // nautical
Note: See TracBrowser for help on using the repository browser.