Package com.cumulocity.model
Class DateConverter
java.lang.Object
com.cumulocity.model.DateConverter
- All Implemented Interfaces:
org.svenson.converter.TypeConverter
@Deprecated
public class DateConverter
extends Object
implements org.svenson.converter.TypeConverter
Deprecated.
Provides methods to convert Date to/from String, so that it can be used as JSON object where required.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DateConverter
public DateConverter()Deprecated.
-
-
Method Details
-
fromJSON
Deprecated.- Specified by:
fromJSON
in interfaceorg.svenson.converter.TypeConverter
-
string2Date
Deprecated.Convert a String into a date usingISODateTimeFormat
;- Parameters:
in
-- Returns:
-
toJSON
Deprecated.- Specified by:
toJSON
in interfaceorg.svenson.converter.TypeConverter
-
date2String
Deprecated.Return a String representation of the given Date.- Parameters:
in
-- Returns:
-