aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/astronomy/README
diff options
context:
space:
mode:
Diffstat (limited to 'src/ru/olamedia/astronomy/README')
-rw-r--r--src/ru/olamedia/astronomy/README19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ru/olamedia/astronomy/README b/src/ru/olamedia/astronomy/README
new file mode 100644
index 0000000..13d2655
--- /dev/null
+++ b/src/ru/olamedia/astronomy/README
@@ -0,0 +1,19 @@
+
+simple-astronomy-lib
+A simple astronomy Java library for calculating moon phase, solar eclipses, etc.
+
+http://code.google.com/p/simple-astronomy-lib/
+
+import java.util.Calendar;
+import java.util.TimeZone;
+import com.bradsbrain.simpleastronomy.MoonPhaseFinder;
+
+public class WerewolfCheck {
+ public static void main(String[] args) {
+ Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("America/Chicago"));
+ cal.clear();
+ cal.set(2011, Calendar.JUNE, 12);
+
+ System.out.println("The next full moon is on: " + MoonPhaseFinder.findFullMoonFollowing(cal));
+ }
+} \ No newline at end of file