エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
How can I print yesterday's or tomorrow's date?
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
How can I print yesterday's or tomorrow's date?
How can I print yesterday's or tomorrow's date? Updated: 07/31/01 From the command-line: ========... How can I print yesterday's or tomorrow's date? Updated: 07/31/01 From the command-line: ====================== [Using Perl] To print yesterday's date: $ perl -e '@T=localtime(time-86400);printf("%02d/%02d/%02d",$T[4]+1,$T[3],($T[5]+1900)%100)' To print tomorrow's date: $ perl -e '@T=localtime(time+86400);printf("%02d/%02d/%02d",$T[4]+1,$T[3],($T[5]+1900)%100)' [the TZ trick] If the system is loca