Object: UsiTimeDisp
- Updated2024-09-12
- 2 minute(s) read
(DataFinderStatistics | UsiTimeDisp) > Object: UsiTimeDisp
Object: UsiTimeDisp
The USITimeDisp object provides date and time information.
The following example executes a search and displays the name and creation year of the files it finds:
| VBScript | Python |
Dim oMyCurrDataProvider, oMyConditions, oMyQueryForm, oMyResultsList, Element, oMyTime Set oMyCurrDataProvider = Navigator.Display.CurrDataFinder Set oMyQueryForm = oMyCurrDataProvider.QueryForm Call oMyQueryForm.Clear() oMyQueryForm.Mode = eAdvancedQueryForm oMyQueryForm.ReturnType = eSearchFile Set oMyConditions = oMyQueryForm.Conditions Call oMyConditions.Add(eSearchFile,"fileName","=","Brake*") Call oMyQueryForm.Search() Set oMyResultsList = oMyCurrDataProvider.ResultsList For Each Element in oMyResultsList.ResultsElements If Element.IsKindOf(eSearchFile) Then Set oMyTime = Element.Properties("CreateTime").Value Call MsgBoxDisp("name: " & Element.Name & vbcrlf & "Year: " & oMyTime.Year) Else Call MsgBoxDisp("No File") End If Next
![]() | Note You can also create a USITimeDisp object with the CreateTime command. |
Properties
Day | Fraction | Hour | Microsecond | Millisecond | Minute | Month | Nanosecond | Second | SecondsFrom0000 | SecondsFrom1904 | VariantDate | Year
Methods
Returned From
DataFinderStatistics.LastCompleteIndexing | UsiTimeDisp.GetLocalTime | UsiTimeDisp.GetUTC
See Also
Procedures
Configuring the Search Results | Defining Search Areas | Executing a Search with OR Operations | Executing a Text Search | Indexing Search Areas | Optimizing Custom Properties | Saving and Loading a Search Query | Searching for Data on a Different Computer in the Network | Searching for Multiple Properties | Sorting Search Results before Executing a Search
Examples
Brake Tests for Trucks | Checking DataPlugins for Timeout | Combining DataFinder Search Results | Context Menu for the Search Results of the DataFinder | Creating ATFX Files from the Context Menu of an ASAM Data Store | Customized User Interface | Evaluation Wizard for the Search Results of the DataFinder | Filtering Data with a Dialog Box | Filtering Data without a Dialog Box | Search and Evaluation Functions in User Dialog Boxes | Searching for and Evaluating Channels | Searching for Channels in the NAVIGATOR | Searching for Data Sets Marked "Failed" in Data Stores | Searching for Data Sets Marked "Failed" | Searching for Properties and Evaluating the Associated Channels | Varying Browse Settings of a Data Store
