Date / time formats
Novell Cool Solutions: Question & Answer
Reader Rating
from 1 ratings
Q:
I am trying to change the Login Expiration Time via Delimited text driver. I get the following error:
An exception occurred: java.lang.NumberFormatException: For input string: "01-Jul-2005"
Can someone guide me to the correct format for the date/time?
A:
The correct format is an integer representing the number of seconds since
Jan 1, 1970. Search for SimpleDateFormat at any of the following:
http://groups-beta.google.com/group/novell.support.dirxml
http://groups-beta.google.com/group/novell.support.nsure-identity-manager
http://groups-beta.google.com/group/novell.devsup.dirxml
to find examples of policies that convert the date from whatever format
you have in your input to that required by eDirectory.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
Reader Comments
- It really helped me to convert time formats to Unix time to UTC