UTC現在時刻
Time.now.utc
format = “%Y-%m-%d %H:%M:%S”
from = DateTime.strptime(“2014-10-08 12:51:23”, format)
to = Time.now.utc
Data.where(created_at: from…to)
UTC現在時刻
Time.now.utc
format = “%Y-%m-%d %H:%M:%S”
from = DateTime.strptime(“2014-10-08 12:51:23”, format)
to = Time.now.utc
Data.where(created_at: from…to)