Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Strip time stamp from a Date Field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Strip time stamp from a Date Field
 Login/Join
 
Member
posted
Help!

I have a Date field (HYYMDs) that I want to split the date and the time stamp. I have found the function to do this for the Date component...is there a comparable WF function to display just the timestamp?

START_DT STRT_DT STRT_TM
2005/01/28 06:36:24.000 2005/01/08 06:36:24.000

Thanks!
Chuck
 
Posts: 12 | Registered: May 05, 2004Report This Post
<Grzegorz>
posted
Chuck,

If you just want to display the time part of the datetime field you can use the following example:

TABLE FILE MYS_DTABL
PRINT STAMP
COMPUTE TIME_PART/A10 = EDIT(HCNVRT(STAMP, '(HYYMDS)', 20, 'A20'), '$$$$$$$$$$9999999999');
END

The master file for the MYS_DTABL:
FILE=MYS_DTABL, SUFFIX=SQLMYSQL,$
SEGNAME=MYS_DTABL,
SEGTYPE=S0 ,$
FIELD=STAMP, stamp, HYYMDS, HYYMDS, MISSING=OFF,$

Hope this helps
Grzegorz
 
Report This Post
Gold member
posted Hide Post
In the upper right corner of this page there should be a link to the Technical Documentation Library where I found the listing for HTIME... this function should do what you need.

The heading was

"HTIME: Converting the Time Portion of a Date-Time Value to a Number "
 
Posts: 77 | Location: Chicago, IL | Registered: May 06, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Strip time stamp from a Date Field

Copyright © 1996-2020 Information Builders