taskerの%UPSを日時分秒形式に変換する


UPS DHMS converter
A1: Variable Set [ Name:%uptime To:%UPS Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%ups_d To:floor(%uptime / 86400) Recurse Variables:Off Do Maths:On Append:Off ]
A3: Variable Set [ Name:%ups_h To:floor(%uptime % 86400 / 3600) Recurse Variables:Off Do Maths:On Append:Off ]
A4: Variable Set [ Name:%ups_m To:floor(%uptime % 86400 % 3600 / 60) Recurse Variables:Off Do Maths:On Append:Off ]
A5: Variable Set [ Name:%ups_s To:%uptime % 60 Recurse Variables:Off Do Maths:On Append:Off ]
A6: Flash [ Text:Uptime: %uptime sec.
%ups_d days %ups_h h %ups_m m %ups_s s Long:On ]

※A6をFlashではなくNotifyなどにして使う

※重要なポイント:
計算式では演算子と数値の間にスペースを入れる
これに気付かず30分ほど頭を抱えて悩んだ
お知らせ
実務でも趣味でも役に立つ多機能Webツールサイト【無限ツールズ】で、日常をちょっと便利にしちゃいましょう!
無限ツールズ

 
writening