public class PlatformUtilsBase
This class is used to wrap one off utility methods that need to be implemented in a platform dependent way. Methods
here are static & not actually defined in the base class--just a template comment is given here, and the method
should actually be implemented in the platform dependent PlatformUtils subclass. Callers should call, for example,
with the syntax PlatformUtils.stringGetChars().
By using the above scheme, calls are static & most efficient, there's no need for extra infrastructure around a
factory class, and perhaps most importantly if the platform doesn't implement a method which is actually needed by
some code it uses, that problem is caught at compile time not run time.
Get the number of milliseconds since Jan 1, 1970, UTC time. That's also known as epoch time. It's the time unit
we generally use in JSimple.
number of milliseconds since 1/1/70 UTC/GMT
public static void setCurrentTimeOverride(long currentTimeOverrideInMillis)
Set an override for the current time, that will then be returned from getCurrentTimeMillis instead of the actual
time being returned. This method can be used in test jigs, to simulate the time, so tests are deterministic
with respect to time or perhaps to make a certain amount of time pass for code that checks getCurrentTimeMillis.
If the specified time is DateTime.NULL_DATE, then any override is cleared and the real time will be returned
again from getCurrentTimeMillis.
currentTimeOverrideInMillis - override for current time, in millis, or DateTime.NULL_DATE to clear override