db.models.functions.datetime.TruncHour
  • References/Python/Django/API/Models/Database Functions

class TruncHour(expression, output_field=None, tzinfo=None, **extra) [source]

2025-01-10 15:47:30
db.models.functions.Least
  • References/Python/Django/API/Models/Database Functions

class Least(*expressions, **extra) [source] New

2025-01-10 15:47:30
db.models.functions.datetime.Trunc
  • References/Python/Django/API/Models/Database Functions

class Trunc(expression, kind, output_field=None, tzinfo=None, **extra) [source] Truncates

2025-01-10 15:47:30
db.models.functions.Cast
  • References/Python/Django/API/Models/Database Functions

class Cast(expression, output_field) [source] New

2025-01-10 15:47:30
db.models.functions.Upper
  • References/Python/Django/API/Models/Database Functions

class Upper(expression, **extra) [source] Accepts a single text field or expression and returns

2025-01-10 15:47:30
db.models.functions.datetime.ExtractSecond
  • References/Python/Django/API/Models/Database Functions

class ExtractSecond(expression, tzinfo=None, **extra) [source] lookup_name

2025-01-10 15:47:30
db.models.functions.datetime.TruncYear
  • References/Python/Django/API/Models/Database Functions

class TruncYear(expression, output_field=None, tzinfo=None, **extra) [source]

2025-01-10 15:47:30
db.models.functions.datetime.TruncMinute
  • References/Python/Django/API/Models/Database Functions

class TruncMinute(expression, output_field=None, tzinfo=None, **extra) [source]

2025-01-10 15:47:30
db.models.functions.datetime.Extract
  • References/Python/Django/API/Models/Database Functions

class Extract(expression, lookup_name=None, tzinfo=None, **extra) [source] Extracts a component

2025-01-10 15:47:30
db.models.functions.datetime.TruncDate
  • References/Python/Django/API/Models/Database Functions

class TruncDate(expression, **extra) [source] lookup_name =

2025-01-10 15:47:30