source:
trunk/FACT++/scripts/tests_n_examples/test_Sun.js@
18514
| Last change on this file since 18514 was 14887, checked in by , 13 years ago | |
|---|---|
| File size: 689 bytes | |
| Line | |
|---|---|
| 1 | 'use strict'; |
| 2 | var date = new Date(); // Date in UTC |
| 3 | console.out(date); |
| 4 | console.out("------------------------------"); |
| 5 | console.out(" - no params: -"); |
| 6 | console.out( JSON.stringify( Sun.horizon() ) ); |
| 7 | console.out('params: ("astro") '); |
| 8 | console.out( JSON.stringify( Sun.horizon("astro") ) ); |
| 9 | console.out('params: (-12, date) '); |
| 10 | console.out(JSON.stringify(Sun.horizon(-12, date ) ) ); // nautical |
| 11 | console.out('params: ("FACT") '); |
| 12 | console.out(JSON.stringify(Sun.horizon("FACT") ) ); |
| 13 | console.out("------------------------------"); |
| 14 | console.out("-----------time when LidOpen() will work-----------"); |
| 15 | console.out('nautical'); |
| 16 | console.out(JSON.stringify(Sun.horizon("nautical" ) ) ); // nautical |
Note:
See TracBrowser
for help on using the repository browser.
