on 06-22-2007 11:16 AM
Hi,
Is there any standard function in graphical mapping to get the system time. If not, please can somebody guide me to write a user defined function to get it.
Thanks,
Dehra
String time =(new java.sql.Timestamp(System.currentTimeMillis())).toString();
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks guys ! It solves my problem. I am just starting to learn java so UDF are a bit of struggle! But with the help of all the experts on this forum, I would pick it up.
regards,
Dehra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dehra,
U can easily write UDF using Java.util.DateTime class where standard method is availbale to give you time and date
Just call the method and convert into string if it comes as an object and pass it in return parameter
Regards,
**grant points if info is helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Date now1 = new Date();
SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");
String dateString1 = formatter.format(now1);
return dateString1;
This will help you to format the time as you need !!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Debra,
There is one: go to the date group and select currentDate. In the properties of this function, you can select the time also (standard only the date is generated).
Kind regards
joris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CurrentDate function in Message Mapping
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.