タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

pythonとdatetimeに関するbraitomのブックマーク (1)

  • GitHub - kennethreitz/maya: Datetimes for Humans™

    >>> now = maya.now() <MayaDT epoch=1481850660.9> >>> tomorrow = maya.when('tomorrow') <MayaDT epoch=1481919067.23> >>> tomorrow.slang_date() 'tomorrow' >>> tomorrow.slang_time() '23 hours from now' # Also: MayaDT.from_iso8601(...) >>> tomorrow.iso8601() '2017-02-10T22:17:01.445418Z' # Also: MayaDT.from_rfc2822(...) >>> tomorrow.rfc2822() 'Fri, 10 Feb 2017 22:17:01 GMT' # Also: MayaDT.from_rfc3339(

    GitHub - kennethreitz/maya: Datetimes for Humans™
    braitom
    braitom 2016/12/19
    エポックタイムを人間が理解しやすい形式で扱えるPythonライブラリ。`maya.when('tomorrow')`とかできる。ISO 8601とRFC 2822の形式にも変換可能。
  • 1