- Datagration Knowledge Base
- P#
- Time and Date Functions
-
Getting Started
-
Customer Training
-
Customer Success
-
Updates
-
Production Optimization
-
Completion Optimization
-
Environmental, Social & Governance
-
Development, Acquisition & Divestitures
-
Enhanced Oil Recovery
-
Admin
-
P#
- Getting Started with P#
- Data Cleansing
- String Functions
- Scenario Functions
- Regression Functions
- Placeholder Functions
- Neighborhood Functions
- Mathematical Functions
- Logic Functions
- Entities Function
- Moving Window Functions
- Time and Date Functions
- Statistical Functions
- Economic Functions
- Data Handling
- Additional Functions
- Directional Functions
- Machine Learning Functions
- DCA Functions
-
Packages
StartofTag()
Returns the start date and time of the first tag entry for the specified tag.
Syntax
StartOfTag(string tagName)
Example
StartOfTag("Sand problem")
Definition 2
Returns the start date and time of the first tag entry for the specified tag and specified entity.
Syntax
StartOfTag(string tagName, string entityName)
Example
StartOfTag("Sand problem", "Well 1")
Definition 3
Returns the start date and time of the related tag entry for the specified tag and specified entity.
Tag precedence:
1. First
2. Last
3. Previous
4. Next
2. Last
3. Previous
4. Next
Syntax
StartOfTag(string tagName, string entityName, tag entry precedence tagEntryPrecedence)
Example
StartOfTag("Sand problem", "Well 1", TagPrecedences.Next)
Definition 4
Returns the start date and time of the related tag entry in the specified state for the specified tag and specified entity.
Tag precedence:
1. First
2. Last
3. Previous
4. Next
2. Last
3. Previous
4. Next
Tag entry states (only when precedence = Last):
1. Open
2. Closed
3. Any
2. Closed
3. Any
Syntax
StartOfTag(string tagName, string entityName, tag entry precedence tagEntryPrecedence,
tag entry state tagEntryState)
Example
StartOfTag("Sand problem", "Well 1", TagPrecedences.Last, TagEntryStates.Open)