Change language

PHP IntlCalendar getActualMinimum () function

Syntax:
  • Object Oriented Style
    int IntlCalendar::getActualMinimum (int $field)
  • Procedural style
    int intlcal_get_actual_minimum (IntlCalendar $cal, int $field )
Parameters:This function takes two parameters as above and described below:
  • $cal:this parameter contains an IntlCalendar resource.
  • $field:This parameter contains one of the 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 minimum value in units associated with the given field on success, or FALSE on error.The following program illustrates the IntlCalendar::getActualMinimum() 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 -> getActualMinimum (IntlCalendar: : FIELD_DAY_OF_MONTH));  
// Using the getActualMaximum() function for the DateTime var_dump ( $calendar -> getActualMinimum (IntlCalendar: : FIELD_DAY_OF_WEEK_IN_MONTH)); var_dump ( $calendar -> getActualMinimum (IntlCalendar::FIELD_MONTH)); var_dump ( $calendar -> getActualMinimum (IntlCalendar::FIELD_WEEK_OF_YEAR)); var_dump ( $calendar -> getActualMinimum (IntlCalendar::FIELD_WEEK_OF_MONTH));  
?>
Exit:
int (1 ) int (-1) int (0) int (1) int (1)
Link: https://www.php.net/manual/en/intlcalendar.getactualminimum.php

Shop

Learn programming in R: courses

$

Best Python online courses for 2022

$

Best laptop for Fortnite

$

Best laptop for Excel

$

Best laptop for Solidworks

$

Best laptop for Roblox

$

Best computer for crypto mining

$

Best laptop for Sims 4

$

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