We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BcTextHelper、BcTimeHelper で和暦の新元号に対応していますが、単純に西暦年月日→ 和暦年月日の変換するためは複数のメソッドを呼び出す必要があるようでしたので、BlogのViewなどで簡単に変換できるヘルパーがあると良いと思われます。
例えば、BcTextHelper::dateTimeWareki が近い実装なのですが、 年月日前後に余分なスペースが入ってしまったり、1年→元年の対応が無いようでした。
The text was updated successfully, but these errors were encountered:
@kaburk コア処理は、BcTimeHelper::convertToWarekiArray() にまとめてしまった方が良さそうですね。そして、BcTextHelper::dateTimeWareki() でラッピングする。
BcTimeHelper::convertToWarekiArray()
BcTextHelper::dateTimeWareki()
BcTimeHelper::convertToWareki()
Sorry, something went wrong.
No branches or pull requests
概要
BcTextHelper、BcTimeHelper で和暦の新元号に対応していますが、単純に西暦年月日→ 和暦年月日の変換するためは複数のメソッドを呼び出す必要があるようでしたので、BlogのViewなどで簡単に変換できるヘルパーがあると良いと思われます。
例えば、BcTextHelper::dateTimeWareki が近い実装なのですが、
年月日前後に余分なスペースが入ってしまったり、1年→元年の対応が無いようでした。
TODO
備考
The text was updated successfully, but these errors were encountered: