system.date.midnight
This function is used in Python Scripting.
Descriptionβ
Returns a copy of a date with the hour, minute, second, and millisecond fields set to zero.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.date.midnight(date)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| Date | date | The starting date. |
Returnsβ
Date - A new date, set to midnight of the day provided
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet
# This example prints out the current date with the time set to midnight.
date = system.date.now()
print system.date.midnight(date)