$string = 'Hello World!';
if(stristr($string, 'earth') === FALSE) {
echo '"earth" not found in string';
}
// 出力は "earth" not found in string となります
参照元:http://www.php.net/manual/ja/function.st…
以下のサイトを参考に
[ui_picker setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@”GMT”]];
のようにすると日付の誤差はなくなりましたが、時刻の誤差はそのままでした。
http://pukapuka-ahirusan.blogspot.com/2010/11/uidatepicker.html
どうやら、UIDatePickerで取得した日本時間をグリニッジ標準時刻に直して表示しているようなので、−9時間計算になっているような感じがします。この辺をうまいこと調整出来れば、なんとかなりそうなんで、もう少し調べてみます。
graffiti on the web
この投稿へのコメント
コメントはまだありません。