我在Rails (mysql数据库)中有这个查询。
planSubscriptions = PlanSubscription.find_by_sql(["SELECT ps.*
FROM plan_subscriptions ps, plans p, states s
WHERE p.name = 'Unlimitted'
AND s.name = 'Confirmed'
AND p.id = ps.plan_id
AND s.id = ps.state_id
AND date_format
假设现在是11小时11分钟。它读作“一小时”和“十一分钟”,如:
Sub TEST1()
Application.Speech.Speak "It is " & Hour(Now()) & " hours and " & Minute(Now()) & " minutes"
End Sub
然而,下面的内容是“十一”小时和十一分钟
Sub TEST2()
Application.Speech.Speak "It is 11 hours and 11 minutes"
End Sub
相反
我需要显示三个日历,一个是当前月份,另两个是未来两个月。
我用碳来做这些计算。
今天是十月三十一日。
如果我写以下内容
$carbon = Carbon::now('UTC'); // current datetime in UTC is 8:54 AM October 31, 2016
echo $carbon->format('F') . '<br>';
echo $carbon->addMonths(1)->format('F');
我得到了这个输出
十月
十二月
我完全想念十一月..。