|
|
@@ -9,6 +9,9 @@
|
|
|
|
|
|
package de.appplant.cordova.plugin;
|
|
|
|
|
|
+import java.util.Calendar;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
import org.json.JSONObject;
|
|
|
|
|
|
import android.R;
|
|
|
@@ -50,6 +53,17 @@ public class LocalNotificationOptions {
|
|
|
return date;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Gibt die Zeit als Kalender an.
|
|
|
+ */
|
|
|
+ public Calendar getCalendar () {
|
|
|
+ Calendar calendar = Calendar.getInstance();
|
|
|
+
|
|
|
+ calendar.setTime(new Date(getDate()));
|
|
|
+
|
|
|
+ return calendar;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Gibt die Nachricht der Notification an.
|
|
|
*/
|