TransactionNow
This class represents the database function for the current date and time. It maps to the SQL CURRENT_TIMESTAMP function and returns a DateTimeField.
Attributes
| Attribute | Type | Description |
|---|---|---|
| template | string = CURRENT_TIMESTAMP | The SQL template used to generate the current timestamp, defaulting to 'CURRENT_TIMESTAMP'. |
| output_field | [DateTimeField](../../../forms/fields/datetimefield.md?sid=django_forms_fields_datetimefield) = DateTimeField() | The database field type used to represent the resulting value, initialized as a DateTimeField. |
Constructor
Signature
def TransactionNow() - > None
Signature
def TransactionNow() - > null