Carbon:DateTime的简单PHP API扩展

时间:2024-03-06 17:08:47
【文件属性】:

文件名称:Carbon:DateTime的简单PHP API扩展

文件大小:709KB

文件格式:ZIP

更新时间:2024-03-06 17:08:47

PHP

碳 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 ()-> subWeek (); $ nextSummerOlympics = Carbon :: createFromDate ( 2016 )-> addYears ( 4 ); $ official


网友评论