diff options
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.adoc')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index aa42991be..d88783bec 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -4862,6 +4862,41 @@ weechat_util_strftimeval (time, sizeof (time), "%FT%T.%f", &tv); [NOTE] スクリプト API ではこの関数を利用できません。 +// TRANSLATION MISSING +==== util_parse_time + +_WeeChat ≥ 4.2.0._ + +Parse date/time with support of microseconds. + +Prototype: + +[source,c] +---- +int util_parse_time (const char *datetime, struct timeval *tv); +---- + +Arguments: + +* _date_: date/time +* _tv_: parsed date/time ("timeval" structure) + +Return value: + +* 1 if OK, 0 if error + +C example: + +[source,c] +---- +struct timeval tv; +weechat_util_parse_time ("2023-12-25T10:29:09.456789Z", &tv); /* == 1 */ +/* result: tv.tv_sec == 1703500149, tv.tv_usec = 456789 */ +---- + +[NOTE] +スクリプト API ではこの関数を利用できません。 + ==== util_version_number _WeeChat バージョン 0.3.9 以上で利用可。_ |