Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: Format ccm_date type attribute
Topic Summary:
Created On: 2-Aug-2006 19:27
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 2-Aug-2006 19:27
User is offline View Users Profile Print this message


Tiffany Barnes

Posts: 4
Joined: 22-Jul-2006

When a ccm_date type attribute is printed in an email notification it appears in this format :  1156914000000.

How can I format the date?

 

Report this to a Moderator Report this to a Moderator
 8-Aug-2006 18:04
User is offline View Users Profile Print this message


Charles Murphy

Posts: 5
Joined: 31-Jan-2005

If you're using the perl API to generate the email, try using the getDate method instead of the getValue method.  Or, if you need a specific date format, use the getValue method and then use the POSIX module's strftime function to format it.

 ...
 my $modifyTime_value = $problem->getDataObjectByName("modify_time")->getValue();
 my $dateFormat = "%Y/%m/%d %H:%M:%S";
 my $modifyTime = &POSIX::strftime($dateFormat, localtime($modifyTime_value));
 ...

-Julie Lee
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.