You can also explicitly set the hour, minute, second and millisecond to get 
the same result. There are some new methods in DateUtil that might help.
On Monday, September 21, 2020 at 4:28:13 AM UTC+3 [email protected] wrote:

> Unfortunately the example code you gave me  gives a value that changes 
> every time.
> I have changed it to use the following as the value calculated in Java 
> seems to be a constant and gives me the value below.
> *  private final long BASE_TIME = 1265004000000L;*
>
>
>
> On Thursday, September 17, 2020 at 6:31:26 PM UTC-5, Andrew Cameron wrote:
>>
>> I am trying to use some existing code with Codename one.
>>
>> I need to be able to duplicate the following 
>>
>> *private final long BASE_TIME = new GregorianCalendar(2010, 1, 
>> 1).getTimeInMillis();*
>>
>> How must I define BASE_TIME in a Codename One App  so that it will 
>> function the same as the code above?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1dd38dad-47af-4a75-9626-9dc6cd31a0d4n%40googlegroups.com.

Reply via email to