So far I have this:
var options={
:year => dateTimeString.substring(6,10).toNumber(),
:month => dateTimeString.substring(3,5).toNumber(),
:day => dateTimeString.substring(0,2).toNumber(),
:hour => dateTimeString.substring(11,13).toNumber(),
:minute => dateTimeString.substring(14,16).toNumber(),
:seconds => dateTimeString.substring(14,16).toNumber()};
var TimeDate = Gregorian.moment(options);
Then I perform this.
Background.registerForTemporalEvent(TimeDate);
I perform this in the app view once all other functions have run.
However it doesn’t seem to do anything and i’m not entirely sure why, I get a crash without output (Ever since I started using background i’ve found crashlogs and System.Println does not print to the console) it does System.println to a txt file in the watch but I dont think it’s the ide as I successfully print when running other apps in the sim.
So I was wondering if I could get some help with a working solution on how to take my timestring, convert it to a temporal event then take the temporal event function and create an application wake thing. Thanks