Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jp-arrow

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jp-arrow

Convert date/datetime from/to Japanese date/datetime

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

jp_arrow.

Conver date/datetime from/to Japanese date/datetime.

This module highly depend on "arrow".

  • ISO date/datetime from/to Japanse date/datetime.
  • 100% compatible for "arrow" except japanses date.
  • builtins format for japanese date.

Install

pip install jp_arrow

How to use

In [1]: import jp_arrow

In [2]: jp_arrow.utcnow().format('EEYYYYMMDD', locale='ja')
Out[2]: '令和04年0715日'

In [3]:
In [2]: dt = jp_arrow.get('平成36年01月13日')

In [3]: dt
Out[3]: <Arrow [2024-01-13T00:00:00+00:00]>

In [4]: dt.format(jp_arrow.FORMAT_WAREKI)
Out[4]: '令和6年1月13日'

In [5]: dt.format(jp_arrow.FORMAT_WAREKI_W)
Out[5]: '令和06年01月13日'

In [6]: dt.format(jp_arrow.FORMAT_JISX0301)
Out[6]: 'R6.1.13'

In [7]: dt.format(jp_arrow.FORMAT_JISX0301_W)
Out[7]: 'R06.01.13'

In [8]:

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc