- 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
Day
Returns the day/the day of year/ minute/ hour/ month/ millisecond/ second/year component of the specified time or current time step.
Syntax
Day(date)
DayOfYear(date)
Minute(date)
Hour(date)
Month(date)
Millisecond(date)
Second(date)
Year(date)
-
- date: optional, if this argument is not specified, current time step will be used
Examples
Year()
Month(#05/16/2000#)
DayOfYear(Now())