Interface MendixDateTime
- All Superinterfaces:
IMendixObjectMember<Date>
Provides the interface for a Mendix attribute with type Date and Time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMember
IMendixObjectMember.MemberState, IMendixObjectMember.MemberValueState
-
Method Summary
Modifier and TypeMethodDescriptiongetValueFromString
(String stringValue) If the stringValue is null or empty return null otherwise, parse the stringValue usingLong.parseLong(String)
and create aDate
usingDate(long)
.boolean
Returns whether the date and time are represented in the local time zone or not.Methods inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMember
getMemberValueState, getName, getOriginalValue, getState, getValue, hasReadAccess, hasWriteAccess, isChanged, isValueChanged, isVirtual, parseValueFromString, parseValueToString, setValue, toString
-
Method Details
-
shouldLocalize
boolean shouldLocalize()Returns whether the date and time are represented in the local time zone or not.- Returns:
- true if the date and time is in the local time zone; false if it is UTC
-
getValueFromString
If the stringValue is null or empty return null otherwise, parse the stringValue usingLong.parseLong(String)
and create aDate
usingDate(long)
.- Specified by:
getValueFromString
in interfaceIMendixObjectMember<Date>
- Parameters:
stringValue
- the string to parse- Returns:
- parsed value
-