per page, with , order by , clip by
Results of 1 - 10 of about 14 for tzinfo (0.010 sec.)
データベース関数 14809
データベース関数 The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggregations, or filters in Django. Functions are also expressions , so they can be used and combined ... e ) end_time = models . TimeField ( null = True , blank = True ) Extract class Extract ( expression , lookup_name = None , tzinfo = None , ** extra ) [ソース] 日時の構成要素を数値として取り出します。 DateField , DateTimeField , TimeField または Duratio ... extract 関数を使うので、データベースがサポートしている lookup_name を使うことができます。通常 zoneinfo によって提供される tzinfo サブクラスを渡すと、特定のタイムゾーンの値を抽出できます。 datetime 2015-06-15 23:30:01.000321+00:00 が渡されると、組み込み ... uses the active timezone When USE_TZ is True , Django saves values in UTC (or the connection's configured timezone). Since tzinfo defaults to TIME_ZONE when not provided, you may need to provide an explicit tzinfo to compare extracted values. The follo ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
タイムゾーン 9960
タイムゾーン 概要 タイムゾーンのサポートが有効な場合、Django は日時情報をデータベースには UTC で保存し、内部ではタイムゾーンを意識した(aware な) datetime オブジェクトを使用します。フォームではそれをエンドユーザーのタイムゾーンに変換して表 ... native と aware の日時オブジェクト Python の datetime.datetime のオブジェクトには、タイムゾーン情報を保持するために使える tzinfo 属性があり、これは datetime.tzinfo のサブクラスのインスタンスで表されます。 この属性がセットされオフセットを示すとき、date ... 警告 認識された datetime オブジェクトを扱うことは、必ずしも直感的ではありません。例えば、標準の datetime コンストラクタの tzinfo 引数は、夏時間を含むタイムゾーンでは正しく動作しません。他のタイムゾーンを使用する場合は、 zoneinfo のドキュメントをよく確 ... 認してください。 注釈 Python の datetime.time オブジェクトは、 tzinfo 属性を持ちます。また PostgreSQL には、これに相当する time with time zone タイプがあります。ただし、PostgreSQL のドキュメン ...
https://man.mtool.work/django/6.1/topics/i18n/timezones.html
Django ユーティリティ (django.utils) 8542
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... 文字列を解析し、 datetime.datetime を返します。 UTC オフセットに対応しています。もし value がそれを記述している場合、結果の tzinfo 属性は datetime.timezone インスタンスになります。 parse_duration ( value ) [ソース] 文字列を解析し、 datetime.timedelta を ... '你好-world' django.utils.timezone get_fixed_timezone ( offset ) [ソース] UTCからの固定オフセットを持つタイムゾーンを表す tzinfo インスタンスを返します。 offset は datetime.timedelta または整数の分数です。UTCより東のタイムゾーンには正の値を、西には負の ... 値を使用してください。 get_default_timezone () [ソース] デフォルトのタイムゾーン を表す tzinfo インスタンスを返します。 get_default_timezone_name () [ソース] デフォルトタイムゾーンとカレントタイムゾーン の名前を返しま ...
https://man.mtool.work/django/6.1/ref/utils.html
QuerySet API リファレンス 8279
QuerySet API リファレンス このドキュメントでは、 QuerySet API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおくことをおすすめします。 このリファレン ... ) . dates ( "pub_date" , "day" ) [datetime.date(2005, 3, 20)] datetimes() datetimes ( field_name , kind , order = 'ASC' , tzinfo = None ) これは、 QuerySet 内の指定した種類の有効な日付を表す datetime.datetime オブジェクトのリストとして評価される Query ... られます。 order のデフォルトは 'ASC' で、 'ASC' または 'DESC' のいずれかを指定します。これは結果のソート方法を指定します。 tzinfo は、日時が切り捨てられる前に変換されるタイムゾーンを定義します。実際、与えられた日時は使用されるタイムゾーンによって異なる ... 表現を持ちます。このパラメータは datetime.tzinfo オブジェクトでなければなりません。 None の場合、Djangoは カレントタイムゾーン を使用します。 USE_TZ が False の場合には効果 ...
https://man.mtool.work/django/6.1/ref/models/querysets.html
Django 1.7 リリースノート 8279
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... makes it look like the problem comes from inside Django. It has been deprecated in favor of import_string() . django.utils.tzinfo django.utils.tzinfo provided two tzinfo subclasses, LocalTimezone and FixedOffset . They've been deprecated in favor of mo ...
https://man.mtool.work/django/6.1/releases/1.7.html
はじめての Django アプリ作成、その 2 8209
はじめての Django アプリ作成、その 2 このチュートリアルは チュートリアルその 1 の続きです。ここでは、データベースをセットアップして、最初のモデルを作成し、そして Django が自動的に生成してくれる管理サイトについて、簡単なイントロダクションをし ... eate a new Question. # Support for time zones is enabled in the default settings file, so # Django expects a datetime with tzinfo for pub_date. Use timezone.now() # instead of datetime.datetime.now() and it will do the right thing. >>> from django.util ... a Python attributes. >>> q . question_text "What's new?" >>> q . pub_date datetime.datetime(2012, 2, 26, 13, 0, 0, 775217, tzinfo=datetime.UTC) # Change values by changing the attributes, then calling save(). >>> q . question_text = "What's up?" >>> q ...
https://man.mtool.work/django/6.1/intro/tutorial02.html
モデル index リファレンス 8157
モデル index リファレンス Index クラスを利用すると、データベースのインデックスの作成が簡単になります。インデックスは、 Meta.indexes オプションを使用して追加できます。このドキュメントでは、 index options を含む Index の API リファレンスを説明 ... at などの関数が受け入れられないことを意味します。日付を DateTimeField に保存している場合、 datetime オブジェクトとの比較に tzinfo 引数を提供する必要があるかもしれません。そうしなければ、Django が lookups に対して行うキャスティングの結果、比較がミュータ ...
https://man.mtool.work/django/6.1/ref/models/indexes.html
Django 3.2 リリースノート 8087
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ent of QuerySet.in_bulk() now accepts distinct fields if there's only one field specified in QuerySet.distinct() . The new tzinfo parameter of the TruncDate and TruncTime database functions allows truncating datetimes in a specific timezone. The new db ...
https://man.mtool.work/django/6.1/releases/3.2.html
Django の機能廃止のタイムライン 8017
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... re details on these changes. django.utils.dictconfig will be removed. django.utils.importlib will be removed. django.utils.tzinfo will be removed. django.utils.unittest will be removed. The syncdb command will be removed. django.db.models.signals.pre_s ...
https://man.mtool.work/django/6.1/internals/deprecation.html
データベース 8017
データベース Django は次のデータベースを公式にサポートしています。 PostgreSQL MariaDB MySQL Oracle SQLite サードパーティから提供されているデータベースバックエンド も多数あります。 Django はすべてのデータベースで可能な限り多くの機能をサポート ... の最新リリースには対応していないかもしれません。 タイムゾーンの定義 Django の タイムゾーンサポート を使うつもりなら、 mysql_tzinfo_to_sql を使って MySQL データベースにタイムゾーンテーブルを読み込んでください。これはデータベースごとではなく、MySQLサーバー ...
https://man.mtool.work/django/6.1/ref/databases.html
PREV 1 2 NEXT