Carbon:DateTime的简单PHP API扩展 源码
碳 DateTime的国际PHP扩展。 <?php use Carbon \ Carbon ; printf ( "Right now is %s" , Carbon :: now ()-> toDateTimeString ()); printf ( "Right now in Vancouver is %s" , Carbon :: now ( 'America/Vancouver' )); //implicit __toString() $ tomorrow = Carbon :: now ()-> addDay (); $ lastWeek = Carbon :: now
用户评论