I'm new with monkeyc and I don't understand the Gregorian.moment() function description :
... The Moment is created from the current time. For instance, if the current day is April 1 and you pass in a :day value of 1 the returned Moment's day will be April 2.
Does it mean the options parameter is a "duration" and the function result is a moment = now() + this duration ?
By the way, I have no clear idea of when is UTC and when is local time used ?
- are all moments UTC ? (HeartRateSample.when, Time.now(), Time.today())
- how do Gregorian.info() and Gregorian.moment() deal with UTC/local time ?
I know I should do some test to check all of that, but if it is not explicitly written, it may be changed...