システムの時間を日本時間に変更します。 $ # デフォルトだと9時間の時差がある $ date 2011年 8月 1日 月曜日 14:53:09 UTC $ # /etc/localtimeを置き換える $ sudo cp /usr/share/zoneinfo/Japan /etc/localtime $ # 時差がなくなる $ date 2011年 8月 1日 月曜日 23:53:50 JST この変更をしておかないと、cronの設定をするときに困ったことになります。
In this post, part five of the tutorial series about the Play Framework, you’ll learn the basics of creating models and using the Ebean ORM. Configuring Ebean In order to start using Ebean in your project, you have to enable it. Add the following to conf/application.conf: package models; import play.data.format.Formats; import play.data.validation.Constraints; import play.db.ebean.Model; import ja
Javaのイケてない日付関連の機能に頭を抱えた時、手を出したくなるライブラリ、Joda-Time。 Joda Time http://joda-time.sourceforge.net/ java.util.Calendarなんかよりも表現力豊かで多機能。そして何よりマルチスレッド下で走らせるとあっさり壊れるSimpleDateFormatとは違いimmutableでthread-safeな作りになっている安心の一品。 JSR310が仕事で使えるようになるのは2〜3年後とかいう割と先の話になりそうなので、今日は諦めてJoda-Timeの使い方を勉強してみた。 @Author mwSoft @Date 2011/12/23 @Env Joda-Time2.0 日時はDateTimeというクラスで扱える。 import org.joda.time.DateTime; // 引数なしの場合は現在
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く