Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.core.objectmanagement.member.MendixDateTime Class Reference

Inherits MendixObjectMember< Date >.

List of all members.

Public Member Functions

 MendixDateTime (String name, boolean localize)
 MendixDateTime (String name, boolean v, String virtualActionName, boolean localize)
void setValue (IContext context, long value)
Date getValueFromString (String s)
void parseInitialValueFromString (String s)
String parseValueToString (IContext context)
boolean shouldLocalize ()

Detailed Description

Primitive for a Date (including time)


Constructor & Destructor Documentation

com.mendix.core.objectmanagement.member.MendixDateTime.MendixDateTime ( String  name,
boolean  localize 
)
Parameters:
namethe name of the datetime
localizewhether the date should be localized when displayed
com.mendix.core.objectmanagement.member.MendixDateTime.MendixDateTime ( String  name,
boolean  v,
String  virtualActionName,
boolean  localize 
)

Creates MendixDateTime with the given virtual settings

Parameters:
namethe name of the datetime
vboolean defining whether this primitive is virtual or not
virtualActionNamethe CoreAction which will be called when using getValue
localizewhether the date should be localized when displayed

Member Function Documentation

Date com.mendix.core.objectmanagement.member.MendixDateTime.getValueFromString ( String  s)
Returns:
the date value of the string (string should be epoch value)
void com.mendix.core.objectmanagement.member.MendixDateTime.parseInitialValueFromString ( String  s)

Parse value of this ObjectMember from a String

Parameters:
s
String com.mendix.core.objectmanagement.member.MendixDateTime.parseValueToString ( IContext  context)

parses the date value of this member to a Long

void com.mendix.core.objectmanagement.member.MendixDateTime.setValue ( IContext  context,
long  value 
)
Parameters:
context
valuein milliseconds since "the epoch"
boolean com.mendix.core.objectmanagement.member.MendixDateTime.shouldLocalize ( )

The documentation for this class was generated from the following file: