... ます: "year": 2015 "iso_year": 2015 "quarter": 2 "month": 6 "day": 15 "week": 25 "week_day": 2 "iso_week_day": 1 "hour": 23 "minute": 30 "second": 1 Australia/Melbourne のような異なるタイムゾーンが Django で有効な場合、 datetime は値を抽出する前にそのタイ ... にも使用できます。 class ExtractHour ( expression , tzinfo = None , ** extra ) [ソース] lookup_name = 'hour' class ExtractMinute ( expression , tzinfo = None , ** extra ) [ソース] lookup_name = 'minute' class ExtractSecond ( expression , tzinfo = None ... lookup_name) と等価です。各クラスは DateTimeField に __(lookup_name) として登録された Transform でもあります。たとえば、 __minute のようなものです。 DateTimeField の例: >>> from datetime import UTC , datetime >>> from django.db.models.functions import ... ... ) : 17 Feb 2007 16:30:00 は now になります。 17 Feb 2007 16:29:31 は 29 seconds ago になります。 17 Feb 2007 16:29:00 は a minute ago になります。 17 Feb 2007 16:25:35 は 4 minutes ago になります。 17 Feb 2007 15:30:29 は 59 minutes ago になります。 17 ... Feb 2007 15:30:01 は 59 minutes ago になります。 17 Feb 2007 15:30:00 は an hour ago になります。 17 Feb 2007 13:31:29 は 2 hours ago になります。 16 Feb ... は 30 seconds from now になります。 17 Feb 2007 16:30:29 は 29 seconds from now になります。 17 Feb 2007 16:31:00 becomes a minute from now になります。 17 Feb 2007 16:34:35 は 4 minutes from now になります。 17 Feb 2007 17:30:29 は an hour from now にな ... ... e against. Added earliest() for symmetry with latest() . In addition to year , month and day , the ORM now supports hour , minute and second lookups. Django now wraps all PEP 249 exceptions. The default widgets for EmailField , URLField , IntegerField ... on a DateTimeField and USE_TZ is True . Learn more . New lookups may clash with model fields Django 1.6 introduces hour , minute , and second lookups on DateTimeField . If you had model fields called hour , minute , or second , the new lookups will cl ... ... r lookups (such as exact , gt , lt , etc.). For example: Entry.objects.filter(pub_date__month__gt=6) . Time lookups (hour, minute, second) are now supported by TimeField for all database backends. Support for backends other than SQLite was added but un ... t calls the existing date_extract_sql() method. This method is overridden by the SQLite backend to add time lookups (hour, minute, second) to TimeField , and may be needed by third-party database backends. The DatabaseOperations.datetime_cast_sql() met ... ... クラス) ExtractIsoWeekDay (django.db.models.functions のクラス) ExtractIsoYear (django.db.models.functions のクラス) ExtractMinute (django.db.models.functions のクラス) ExtractMonth (django.db.models.functions のクラス) ExtractQuarter (django.db.models. ... ield.contained_by jsonfield.contains jsonfield.has_any_keys jsonfield.has_key jsonfield.has_keys jsonfield.key left lt lte minute month num_dimensions overlaps overlaps_above overlaps_below overlaps_left overlaps_right quarter range rangefield.adjacent ... mumLengthValidator (django.contrib.auth.password_validation のクラス) MinLengthValidator (django.core.validators のクラス) minute field lookup type MinValueValidator (django.core.validators のクラス) missing_args_message (BaseCommand の属性) MIXED (Ope ... ... n time field field_name to a time object with only the given specificity. The lookup_type argument can be either 'hour' , 'minute' , or 'second' . The DatabaseOperations.datetime_cast_time_sql() method is added to support the time lookup. It accepts a ... ... します。 field_name にはモデルの DateTimeField の名前を指定します。 kind には "year" , "month" , "week" , "day" , "hour" , "minute" , "second" のいずれかを指定します。結果のリストに含まれる datetime.datetime オブジェクトは、指定された type に " 切り捨て ... 2026年10月08日