Results of 1 - 10 of about 15 for timezone (0.007 sec.)
- email.utils: 各種ユーティリティ 13358
- email.utils : 各種ユーティリティ ソースコード: Lib/email/utils.py email.utils モジュールには、いくつかの便利なユーティリティがあります: email.utils. localtime ( dt = None ) Return local time as an aware datetime object. If called without ar
...uments, return the current time. Otherwise the dt argument should be a datetime instance, and it is converted to the local time zone according to the system time zone database. If dt is naive (that is, dt.tzinfo is None ), it is assumed to be in local ti...returns a datetime ; otherwise ValueError is raised if date contains an invalid value such as an hour greater than 23 or a timezone offset not between -24 and 24 hours. If the input date has a timezone of -0000 , the datetime will be a naive datetime , a...nd if the date conforms to the RFCs it will represent a time in UTC but with no indication of the actual source timezone of the message the date comes from. If the input date has any other valid timezone offset, the datetime will be an aware d... - https://man.mtool.work/python/3.14/library/email.utils.html
- datetime --- 基本的な日付と時間の型 12783
- datetime --- 基本的な日付と時間の型 ソースコード: Lib/datetime.py datetime モジュールは、日付や時刻を操作するためのクラスを提供しています。 日付や時刻に対する算術がサポートされている一方、実装では出力のフォーマットや操作のための効率的な属性
...セット、タイムゾーン名、夏時間が適用されているかどうかの情報を保持します。 datetime モジュールが提供する具象 tzinfo クラスは timezone だけです。 timezone クラスは、UTC 自体や北米の EST、EDT など、UTC からのオフセットが固定された単純なタイムゾーンを表現でき...ジェクトで許されている、年を表現する最大の数字です。 MAXYEAR は9999です。 datetime. UTC UTCタイムゾーンシングルトン datetime.timezone.utc の別名。 Added in version 3.11. 利用可能な型 class datetime. date 理想的な naive な日付で、これまでもこれからも現在のグ...ime クラスで用いられ、カスタマイズ可能な時刻修正の概念 (たとえばタイムゾーンや夏時間の計算) を提供します。 class datetime. timezone tzinfo 抽象基底クラスを UTC からの固定オフセットとして実装するクラスです。 Added in version 3.2. これらの型のオブジェクトは... - https://man.mtool.work/python/3.14/library/datetime.html
- DateTime オブジェクト 8899
- DateTime オブジェクト datetime モジュールでは、様々な日付オブジェクトや時刻オブジェクトを提供しています。以下に示す関数を使う場合には、あらかじめヘッダファイル datetime.h をソースに include し ( Python.h はこのファイルを include しません)、
...n レイヤにおける datetime.tzinfo と同じオブジェクトです。 UTCシングルトンにアクセスするためのマクロ: PyObject * PyDateTime_TimeZone_UTC UTCタイムゾーンに相当するシングルトンを返します。これは datetime.timezone.utc と同じオブジェクトです。 Added in versio...を返します。マイクロ秒と秒が datetime.timedelta オブジェクトで定義されている範囲に入るように正規化を行います。 PyObject * PyTimeZone_FromOffset ( PyObject * offset ) 戻り値: 新しい参照。 offset 引数で指定した固定オフセットを持つ、名前のない datetime.timez...one オブジェクトを返します。 Added in version 3.7. PyObject * PyTimeZone_FromOffsetAndName ( PyObject * offset , PyObject * name ) 戻り値: 新しい参照。 offset*引数で指定した固定のオフセットと、*n... - https://man.mtool.work/python/3.14/c-api/datetime.html
- データ型 8185
- データ型 この章で解説されるモジュールは日付や時間、型が固定された配列、ヒープキュー、両端キュー、列挙型のような種々の特殊なデータ型を提供します。 Python also provides some built-in data types, in particular, dict , list , set and frozenset
...a date オブジェクト 使用例: date datetime オブジェクト 使用例: datetime time オブジェクト 使用例: time tzinfo オブジェクト timezone オブジェクト strftime() と strptime() の動作 strftime() と strptime() の書式コード 技術的な詳細 zoneinfo --- IANA タイムゾ... - https://man.mtool.work/python/3.14/library/datatypes.html
- zoneinfo --- IANA タイムゾーンのサポート 8185
- zoneinfo --- IANA タイムゾーンのサポート Added in version 3.9. ソースコード: Lib/zoneinfo zoneinfo モジュールは、 PEP 615 で規定された IANA タイムゾーンデータベースに対応するタイムゾーンの具象実装を提供します。 デフォルトでは、 zoneinfo はシ
...利用できればそれを使います。 利用できない場合は、PyPI で提供される公式の tzdata パッケージを使います。 参考 モジュール: datetime ZoneInfo クラスを使用するように設計されたデータ型 time と datetime を提供します。 tzdata パッケージ CPythonコアデベロッパーによ...基底クラスの具象実装であり、 tzinfo に指定することを想定しています。 コンストラクタ、 datetime.replace メソッド、 datetime.astimezone メソッドのいずれかで指定します。 >>> from zoneinfo import ZoneInfo >>> import datetime as dt >>> when = dt . datetime ( 20...ます。 >>> LOS_ANGELES = ZoneInfo ( "America/Los_Angeles" ) >>> when_utc = dt . datetime ( 2020 , 11 , 1 , 8 , tzinfo = dt . timezone . utc ) >>> # PDT から PST への移行前 >>> print ( when_utc . astimezone ( LOS_ANGELES )) 2020-11-01 01:00:00-07:00 >>> # P... - https://man.mtool.work/python/3.14/library/zoneinfo.html
- time --- 時刻データへのアクセスと変換 8115
- time --- 時刻データへのアクセスと変換 このモジュールでは、時刻に関するさまざまな関数を提供します。関連した機能について、 datetime , calendar モジュールも参照してください。 このモジュールは常に利用可能ですが、すべての関数がすべてのプラットフ
...の関数が使う時刻変換の規則を再設定します。 再設定の内容は環境変数 TZ で指定します。 また、 tzname ( TZ 環境変数に基づく値)、 timezone (夏時間でない場合の UTC から西向きの秒数)、 altzone (夏時間の場合の UTC から西向きの秒数)、 daylight (このタイムゾーンに夏...てください。 time. daylight DST タイムゾーンが定義されている場合ゼロでない値になります。以下の注釈を参照してください。 time. timezone (DST でない) ローカルタイムゾーンの UTC からの時刻オフセットで、西に行くほど増加する秒で表した値です (ほとんどの西ヨーロッ...二つ目の文字列を使うべきではありません。以下の注釈を参照してください。 注釈 上記のタイムゾーン定数 ( altzone 、 daylight 、 timezone 、 tzname ) の値は、モジュール読み込み時または最後の tzset() 呼び出し時に有効なタイムゾーン規則によって決まるため、過去の時... - https://man.mtool.work/python/3.14/library/time.html
- tomllib --- TOML ファイルの解析 8115
- tomllib --- TOML ファイルの解析 Added in version 3.11. ソースコード: Lib/tomllib This module provides an interface for parsing TOML 1.0.0 (Tom's Obvious Minimal Language, https://toml.io ). This module does not support writing TOML. 警告 信
...小数点数( parse_float で設定可能) ブール値 真偽値型(bool) オフセット付きの日時 datetime.datetime( tzinfo 属性は datetime.timezone のインスタンスが設定される) ローカルの日時 datetime.datetime( tzinfo 属性は None に設定される) ローカルの日付 datetime.... - https://man.mtool.work/python/3.14/library/tomllib.html
- What's New In Python 3.2 8115
- What's New In Python 3.2 著者 : Raymond Hettinger この記事では Python 3.1 と比較した Python 3.2 の新機能を説明します。 Python 3.2 は 2011 年 2 月 20 日にリリースされました。 主な変更点をいくつか取り上げ、例を示します。 すべての詳細については
...y Kristján Valur Jónsson with an API review by Jeffrey Yasskin in bpo-8777 .) datetime と time datetime モジュールに新たに timezone 型が追加されています。これは tzinfo インターフェイスを実装し、UTC からの固定オフセットとタイムゾーン名を返します。これによ...りタイムゾーンを意識する (timezone-aware な) datetime オブジェクトを容易に作れます: >>> import datetime as dt >>> dt . datetime . now ( dt . timezone . utc )...datetime.datetime(2010, 12, 8, 21, 4, 2, 923754, tzinfo=datetime.timezone.utc) >>> dt . datetime . strptime ( "01/01/2000 12:00 +0000" , "%m/ %d /%Y %H:%M %z" ) datetime.datetime(2000, 1, 1, 12, 0... - https://man.mtool.work/python/3.14/whatsnew/3.2.html
- What's New In Python 3.3 7976
- What's New In Python 3.3 この記事では 3.2 と比較した Python 3.3 の新機能を解説します。 Python 3.3 は2012年9月29日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 398 - Python 3.3 リリーススケジュール 概要 -- リリース
...も前の書式化をサポートしました。(---訳注: What's New in Python 3.2 での変更も参照してみてください。---) datetime.datetime.astimezone() メソッドを引数なしで呼び出せるようになりました。これは datetime インスタンスをシステムのタイムゾーンに変換します。 decim...mail . utils . localtime () >>> m [ 'Date' ] . datetime datetime.datetime(2012, 5, 25, 21, 39, 24, 465484, tzinfo=datetime.timezone(datetime.timedelta(-1, 72000), 'EDT')) >>> m [ 'Date' ] 'Fri, 25 May 2012 21:44:27 -0400' >>> print ( m ) To: =?utf-8?q?=C...e に変換します。オフセットが -0000 の場合は、naive な datetime に変換します。 localtime() : 引数なしで呼び出すと、ローカル timezone を使った aware な datetime として現在ローカル時間を返します。aware な datetime を渡して呼び出すと、ローカル timezone を使っ... - https://man.mtool.work/python/3.14/whatsnew/3.3.html
- email.headerregistry: カスタムヘッダーオブジェクト 7906
- email.headerregistry : カスタムヘッダーオブジェクト ソースコード: Lib/email/headerregistry.py Added in version 3.6: [ 1 ] ヘッダーは str のカスタマイズされたサブクラスで表現されます。 与えられたヘッダーを表現するために使用される特定のクラス
...datetime は naive な datetime になります。 +0000 を含む特定のタイムゾーンオフセットが見つかった場合、 datetime は datetime.timezone でオフセットを記録した aware な datetime になります。 ヘッダーの decoded 値は、 datetime を RFC 5322 の規則に従って書式化し... - https://man.mtool.work/python/3.14/library/email.headerregistry.html