I was able to get it to duplicate the behaviour by using something like * Calendar cld = Calendar.getInstance();* * cld.set(Calendar.YEAR,2010);* * cld.set(Calendar.MONTH,1);* * cld.set(Calendar.DAY_OF_MONTH,1);* * cld.set(Calendar.HOUR_OF_DAY,0);* * cld.set(Calendar.HOUR,0);* * cld.set(Calendar.MINUTE,0);* * cld.set(Calendar.SECOND,0);* * cld.set(Calendar.MILLISECOND,0);* * cld.set(Calendar.AM_PM,0);* * final long BASE_TIME = cld.getTime().getTime();*
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/50305521-2139-4f37-959a-2dd5148e5701o%40googlegroups.com.
