@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | /** |
| 136 | 136 | * Get current datetime |
| 137 | 137 | * @since Aug 17 2015 |
| 138 | - * @return object |
|
| 138 | + * @return Datium |
|
| 139 | 139 | */ |
| 140 | 140 | public static function now() { |
| 141 | 141 | |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | * @param $hour integer |
| 154 | 154 | * @param $minute integer |
| 155 | 155 | * @param $second integer |
| 156 | - * @return object |
|
| 156 | + * @return Datium |
|
| 157 | 157 | */ |
| 158 | 158 | public static function create( $year = 2000, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0 ) { |
| 159 | 159 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | /** |
| 216 | 216 | * Add new date value to current date |
| 217 | 217 | * @param $value string |
| 218 | - * @return object |
|
| 218 | + * @return Datium |
|
| 219 | 219 | */ |
| 220 | 220 | public function add( $value ) { |
| 221 | 221 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | /** |
| 233 | 233 | * Sub date from current date |
| 234 | 234 | * @param $value |
| 235 | - * @return obejct |
|
| 235 | + * @return Datium |
|
| 236 | 236 | */ |
| 237 | 237 | public function sub( $value ) { |
| 238 | 238 | |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | /** |
| 250 | 250 | * Check if current year is leap or not |
| 251 | - * @return boolean |
|
| 251 | + * @return Leap |
|
| 252 | 252 | */ |
| 253 | 253 | public function leap( $type = 'gr') { |
| 254 | 254 | |
@@ -288,6 +288,10 @@ discard block |
||
| 288 | 288 | |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | + /** |
|
| 292 | + * @param string $calendar |
|
| 293 | + * @param string $format |
|
| 294 | + */ |
|
| 291 | 295 | public function translate( $calendar, $format ) { |
| 292 | 296 | |
| 293 | 297 | $this->date_time = new Translate( $this->date_time, $calendar, $format, $this->gregorian_DayofWeek ); |