Change language

PHP IntlCalendar getActualMaximum () function

Syntax:
  • Object Oriented Style
    int IntlCalendar::getActualMaximum (int $field) 
  • Procedural style
    int intlcal_get_actual_maximum (IntlCalendar $cal, int $field) 
Parameters:this function uses two parameters as above and described below:
  • $cal:this parameter contains an IntlCalendar resource.
  • $field:This parameter contains one from IntlCalendar date / time field constants. This field contains an integer value from 0 to IntlCalendar::FIELD_COUNT.
Return value:This function returns an integer value that represents the maximum value in units associated with the given field on success, or FALSE on error.The program below illustrates the IntlCalendar::getActualMaximum() function in PHP:Program:  
// Set the DateTime object ini_set ( ’date.timezone’ , ’ Asia / Calcutta’ );  
// Declare IntlCalendar DateTime object $calendar = IntlCalendar::fromDateTime ( ’2010-09-22’ );  
// Using the getActualMaximum() function for the DateTime var_dump ( $calendar -> getActualMaximum (IntlCalendar: : FIELD_DAY_OF_MONTH));  
// Using the getActualMaximum() function for the DateTime var_dump ( $calendar -> getActualMaximum (IntlCalendar: : FIELD_DAY_OF_WEEK_IN_MONTH));  
// Using the getActualMaximum() function for the DateTime var_dump ( $calendar -> getActualMaximum (IntlCalendar: : FIELD_MONTH));  
// Using the getActualMaximum() function for the DateTime var_dump ( $calendar -> getActualMaximum (IntlCalendar: : FIELD_WEEK_OF_YEAR));  
// Using the getActualMaximum() function for the DateTime var_dump ( $calendar -> getActualMaximum (IntlCalendar: : FIELD_WEEK_OF_MONTH));  
?>
Exit:
int (30 ) int (5) int (11) int (52) int (5) 
Link:https://www.php.net/manual/en/intlcalendar.getactualmaximum.php

Shop

Best laptop for Sims 4

$

Best laptop for Zoom

$499

Best laptop for Minecraft

$590

Best laptop for engineering student

$

Best laptop for development

$

Best laptop for Cricut Maker

$

Best laptop for hacking

$890

Best laptop for Machine Learning

$950

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers

Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method