検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 74 for datetime (0.013 sec.)
Database Functions — Django 4.0.6 ドキュメント 13598
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ct database type: >>> from django.db.models import DateTimeField >>> from django.db.models.functions import Ca ... e . now () >>> Coalesce ( 'updated' , Cast ( now , DateTimeField ())) Collate ¶ class Collate ( expression , c ... : body = models . TextField () modified = models . DateTimeField ( auto_now = True ) class Comment ( models . ... : body = models . TextField () modified = models . DateTimeField ( auto_now = True ) blog = models . ForeignKe ...
https://man.plustar.jp/django/ref/models/database-functions.html - [similar]
タイムゾーン — Django 4.0.6 ドキュメント 13501
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ト ¶ native と aware の日時オブジェクト ¶ Python の datetime.datetime のオブジェクトには、タイムゾーン情報を保持 ... するために使える tzinfo 属性があり、これは datetime.tzinfo のサブクラスのインスタンスで表されます。 こ ... の属性がセットされオフセットを示すとき、datetime オブジェクトは aware となります。それ以外の場合は ... n time zone support is disabled, Django uses naive datetime objects in local time. This is sufficient for many ...
https://man.plustar.jp/django/topics/i18n/timezones.html - [similar]
Form fields — Django 4.0.6 ドキュメント 9934
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nstant, you can also pass any callable: >>> import datetime >>> class DateForm ( forms . Form ): ... day = for ... ms . DateField ( initial = datetime . date . today ) >>> print ( DateForm ()) <tr><th> ... ルトのウィジェット: DateInput 空の値: None Python の datetime.date オブジェクトに正規化されます。 与えられた値が ... datetime.date 、 datetime.datetime または特定の日付の表示形 ...
https://man.plustar.jp/django/ref/forms/fields.html - [similar]
QuerySet API リファレンス — Django 4.0.6 ドキュメント 9627
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ています: Entry . objects . exclude ( pub_date__gt = datetime . date ( 2005 , 1 , 3 ), headline = 'Hello' ) SQL文 ... ています: Entry . objects . exclude ( pub_date__gt = datetime . date ( 2005 , 1 , 3 )) . exclude ( headline = 'H ... ) ¶ Returns a QuerySet that evaluates to a list of datetime.date objects representing all available dates of a ... either "year" , "month" , "week" , or "day" . Each datetime.date object in the result list is "truncated" to t ...
https://man.plustar.jp/django/ref/models/querysets.html - [similar]
File storage API — Django 4.0.6 ドキュメント 9572
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s not exist. get_created_time ( name ) ¶ Returns a datetime of the system's ctime, i.e. os.path.getctime() . O ... rride as necessary. 注釈 When methods return naive datetime objects, the effective timezone used will be the c ... a new file. get_accessed_time ( name ) ¶ Returns a datetime of the last accessed time of the file. For storage ... mentedError . If USE_TZ is True , returns an aware datetime , otherwise returns a naive datetime in the local ...
https://man.plustar.jp/django/ref/files/storage.html - [similar]
Django Utils — Django 4.0.6 ドキュメント 9376
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... objects from the corresponding classes in Python's datetime module. They raise ValueError if their input is we ... rse_date ( value ) ¶ Parses a string and returns a datetime.date . parse_time ( value ) ¶ Parses a string and ... returns a datetime.time . UTC offsets aren't supported; if value desc ... ribes one, the result is None . parse_datetime ( value ) ¶ Parses a string and returns a datetime ...
https://man.plustar.jp/django/ref/utils.html - [similar]
ビューを記述する — Django 4.0.6 ドキュメント 8819
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ーです: from django.http import HttpResponse import datetime def current_datetime ( request ): now = datetime . ... datetime . now () html = "<html><body>It is now %s .</body> ... 行ずつコードを見ていきましょう: 最初に、Python の datetime ライブラリ とともに、クラス HttpResponse を django ... tp モジュールからインポートします。 次に、 current_datetime という関数を定義します。これがビュー関数です。それ ...
https://man.plustar.jp/django/topics/http/views.html - [similar]
設定 — Django 4.0.6 ドキュメント 8220
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... hen USE_TZ is True and this option is set, reading datetimes from the database returns aware datetimes in this ... g. SQLite, MySQL, Oracle), Django reads and writes datetimes in local time according to this option if it is s ... n't. Changing the connection time zone changes how datetimes are read from and written to the database. If Dja ... should leave this option unset. It's best to store datetimes in UTC because it avoids ambiguous or nonexistent ...
https://man.plustar.jp/django/ref/settings.html - [similar]
The syndication feed framework — Django 4.0.6 ドキュメント 7774
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ase, the method/attribute should return a Python # datetime.datetime object. def item_pubdate ( self , item ): ... ate for every item in the feed. """ item_pubdate = datetime . datetime ( 2005 , 5 , 3 ) # Hard-coded pubdate. ... ase, the method/attribute should return a Python # datetime.datetime object. def item_updateddate ( self , ite ... for every item in the feed. """ item_updateddate = datetime . datetime ( 2005 , 5 , 3 ) # Hard-coded updatedda ...
https://man.plustar.jp/django/ref/contrib/syndication.html - [similar]
フォームセット (Formset) — Django 4.0.6 ドキュメント 7565
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 、ということです。以下の例を見てください: >>> import datetime >>> from django.forms import formset_factory >>> f ... ' : 'Django is now open source' , ... 'pub_date' : datetime . date . today (),} ... ]) >>> for form in formset ... al = [ ... { 'title' : 'Article #1' , 'pub_date' : datetime . date ( 2008 , 5 , 10 )}, ... { 'title' : 'Articl ... e #2' , 'pub_date' : datetime . date ( 2008 , 5 , 11 )}, ... ]) >>> for form in ...
https://man.plustar.jp/django/topics/forms/formsets.html - [similar]
PREV 1 2 3 4 5 6 7 8 NEXT