{"id":47,"date":"2006-07-14T19:30:41","date_gmt":"2006-07-14T10:30:41","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2006\/07\/14\/%e3%82%b5%e3%83%96%e3%83%ab%e3%83%bc%e3%83%81%e3%83%b3%e4%bd%9c%e6%88%90%e4%be%8b\/"},"modified":"2006-07-14T19:30:41","modified_gmt":"2006-07-14T10:30:41","slug":"%e3%82%b5%e3%83%96%e3%83%ab%e3%83%bc%e3%83%81%e3%83%b3%e4%bd%9c%e6%88%90%e4%be%8b","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/47","title":{"rendered":"\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u4f5c\u6210\u4f8b"},"content":{"rendered":"<p>\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u3092\u4f5c\u3063\u3066\u307f\u305f<br \/>\n## YYYY-MM-DD hh:mm:ss \u3092\u8fd4\u3059<br \/>\nsub getNowDateTime{<br \/>\n\u3000\u3000\u3000\u3000my ($sec,$min,$hour,$mday,$mon,$year,$wno) = localtime(time);<br \/>\n\u3000\u3000\u3000\u3000return sprintf(&#8220;%04d-%02d-%02d %02d:%02d:%02d&#8221;,$year+1900,$mon+1,$mday,$hour,$min,$sec);<br \/>\n}<br \/>\n\u3064\u3044\u3067\u306b\u3082\u3046\u3072\u3068\u3064<br \/>\n#\u30e9\u30f3\u30c0\u30e0\u306a\u6587\u5b57\u5217\u3092\u8fd4\u3059<br \/>\nsub getRandStr {<br \/>\n\u3000\u3000\u3000\u3000#\u6587\u5b57\u6570\u306e\u6307\u5b9a<br \/>\n\u3000\u3000\u3000\u3000my $value = shift;<br \/>\n\u3000\u3000\u3000\u3000my @chara = qw(a b c d e f g h i j k l m n o p q r s t u v w z y x z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z );<br \/>\n\u3000\u3000\u3000\u3000my $str;<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000if( $value eq &#8220;&#8221; ){<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000$str.=$chara[int(rand($#chara+1))] for ( 1..16 );<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000}else{<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000$str.=$chara[int(rand($#chara+1))] for ( 1..$value );<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000}<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000return $str;<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u3092\u4f5c\u3063\u3066\u307f\u305f ## YYYY<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-perl"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}