From efd35252de163c3846b2fd2fb7d1492717359125 Mon Sep 17 00:00:00 2001 From: kanchudeep <30999796+kanchudeep@users.noreply.github.com> Date: Sat, 30 Dec 2017 19:16:13 +0530 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e3f190..5dab7ab 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Geomagnetism gm = new Geomagnetism(123.45678, 76.54321); System.out.printf("Declination: %f\n", gm.getDeclination()); // Create a calendar for calculation -Calendar calendar = Calendar.getInstance(); +GregorianCalendar calendar = new GregorianCalendar(); calendar.set(2017, 6, 1); // 2017 July 01 // Update instance with altitude and date apart from location gm.calculate(98.76543, 12.34567, 1234, calendar);