|
MIOLO20
|
Membros públicos | |
| __construct ($lan='it', $dateFormat='it', $timeFormat='it', $separator='/') | |
| _checkIniFile () | |
| exitOnError () | |
| _update () | |
| _format () | |
| _language () | |
| _debug () | |
| _disclaimer () | |
| _isDaylight ($time) | |
| dayToN ($day) | |
| NToDay ($day) | |
| monthToN ($month) | |
| NToMonth ($month) | |
| isDay ($data, $day) | |
| dateToTimestamp ($date) | |
| daysDiff ($data_ini, $data_fin) | |
| timesDiff ($time_from, $time_to, $result_in="m") | |
| timesAdd ($time, $add, $what) | |
| howTo ($data) | |
| howDays ($data_ini, $data_fin, $day) | |
| kMkTime ($exp) | |
| atomDate ($date, $atom) | |
| kDate ($format="%l %d %F %Y", $timestamp=0) | |
| operation ($operator, $date, $operand) | |
| netTimestamp ($server='time-a.nist.gov', $port=37) | |
| swatchTime () | |
| mysql_time_easy ($timestamp, $mode='mysqlfrom') | |
| getNthDay ($number, $weekday, $month, $year=0) | |
| romanDate ($date) | |
| yearMoonPhases ($Y) | |
| todayMoonPhase ($date='') | |
| getSunTime ($latitude=0, $longitude=0, $timezone=1, $location='IT|Roma', $daylight=1, $date='') | |
| pg_time_easy ($timestamp) | |
| timeToText ($seconds, $format="h") | |
| secsToTime ($secs) | |
| isValid ($date) | |
| getInfo ($date, $what, $format="short") | |
| InvertDate ($date=null) | |
| CompareDate ($dateA, $operator, $dateB) | |
| GetDay ($date) | |
| GetMonth ($date) | |
| GetYear ($date) | |
| Between ($date1, $date, $date2) | |
| makeTime () | |
Campos de Dados | |
| $dayNameExt | |
| $dayNameCon | |
| $monthNameExt | |
| $monthNameCon | |
| $dataFrom | |
| $dataTo | |
| $error | |
| $abbr | |
| $lan | |
| $version ='0.7' | |
| $dateFormat | |
| $timeFormat | |
| $separator | |
| $path | |
Class for compute some calculations on date and time
Definido na linha 48 do ficheiro mkrono.class.
| __construct | ( | $lan = 'it', | |
| $dateFormat = 'it', | |||
| $timeFormat = 'it', | |||
| $separator = '/' ) |
Constructor @access public
| string | $lan | The language to use for month/day names |
| string | $dateFormat | the format for date |
| char | $separator | Character to use as date separator |
Definido na linha 137 do ficheiro mkrono.class.
| _checkIniFile | ( | ) |
Function that check if ini files for languages exists @access private @reutrn void
Definido na linha 175 do ficheiro mkrono.class.
| _debug | ( | ) |
Print out some debug information @access: private
Definido na linha 273 do ficheiro mkrono.class.
| _disclaimer | ( | ) |
| _format | ( | ) |
Return the format string for date function according to dateFormat parameter and separator @access private
Definido na linha 217 do ficheiro mkrono.class.
| _isDaylight | ( | $time | ) |
Return if a given time is daylight saving or not @access private
Definido na linha 298 do ficheiro mkrono.class.
| _language | ( | ) |
Return the literal name of language code @access private
Definido na linha 250 do ficheiro mkrono.class.
| _update | ( | ) |
Return the last modified date of class file @access private
Definido na linha 207 do ficheiro mkrono.class.
| atomDate | ( | $date, | |
| $atom ) |
Return a single component of given date according to format in dateFormat date example with hour: 03/05/2003 23:43:00 (use only ':' as time separator) @access public
| date | to extract atom from |
| atom | ->
|
Definido na linha 752 do ficheiro mkrono.class.
| Between | ( | $date1, | |
| $date, | |||
| $date2 ) |
Definido na linha 1858 do ficheiro mkrono.class.
| CompareDate | ( | $dateA, | |
| $operator, | |||
| $dateB ) |
Definido na linha 1806 do ficheiro mkrono.class.
| dateToTimestamp | ( | $date | ) |
Trasform a classical date format in unix timestamp format.
| date | $date | The date to transform |
Definido na linha 471 do ficheiro mkrono.class.
| daysDiff | ( | $data_ini, | |
| $data_fin ) |
Define what's the day difference between two given date.
| date | $data_ini | The start date |
| date | $data_fin | The end date |
Definido na linha 500 do ficheiro mkrono.class.
| dayToN | ( | $day | ) |
Convert the name of a day in its numerical value.
| string | $day | The name of day, short or long. |
Definido na linha 345 do ficheiro mkrono.class.
| exitOnError | ( | ) |
Function that exit with the error message if given @access private
Definido na linha 194 do ficheiro mkrono.class.
| GetDay | ( | $date | ) |
Definido na linha 1840 do ficheiro mkrono.class.
| getInfo | ( | $date, | |
| $what, | |||
| $format = "short" ) |
Function that give some information on a date
| string | $date | The date to extract info |
| string | $what | What info to extract from date given (in any case)
|
| string | $format | For textual information, specify if out in the short or long format +"short" or "s" for the short format (default) +"long" or "l" for the long format |
Definido na linha 1739 do ficheiro mkrono.class.
| GetMonth | ( | $date | ) |
Definido na linha 1846 do ficheiro mkrono.class.
| getNthDay | ( | $number, | |
| $weekday, | |||
| $month, | |||
| $year = 0 ) |
Get the date of Nth day of the month ..
| int | $number | The ordinal value to get date |
| string | $weekday | The name of day given in Long or short format |
| mixed | $month | the name or number of month |
| int | $year | the year number |
Definido na linha 1085 do ficheiro mkrono.class.
| getSunTime | ( | $latitude = 0, | |
| $longitude = 0, | |||
| $timezone = 1, | |||
| $location = 'IT|Roma', | |||
| $daylight = 1, | |||
| $date = '' ) |
Return the sunset or sunrise for the given date and geo location.
| int | $latitude | Stay for latitude |
| int | $longitude | Stay for longitude |
| int | $timezone | Is the timezone referred to GMT
|
| string | $location | If don't know the geographical coordinates of your city give the name of location. (Support only Italian cities) |
| int | $daylight |
|
| string | $date | The date to calc sunset/sunrise on |
Definido na linha 1320 do ficheiro mkrono.class.
| GetYear | ( | $date | ) |
Definido na linha 1852 do ficheiro mkrono.class.
| howDays | ( | $data_ini, | |
| $data_fin, | |||
| $day ) |
Define how many days (give it in name format) are in period given.
| date | $data_ini | The start date |
| date | $data_fin | The end date |
| string | $day | The name of day for calculating on |
Definido na linha 694 do ficheiro mkrono.class.
| howTo | ( | $data | ) |
Define how days left to given date. date according to dateFormat parameter passed on inizialization @access public
| date | $data | The date in traditional format for calculating diff |
Definido na linha 670 do ficheiro mkrono.class.
| InvertDate | ( | $date = null | ) |
Definido na linha 1796 do ficheiro mkrono.class.
| isDay | ( | $data, | |
| $day ) |
Define if the day of date given is equal to day given.
| date | $data | The date to check |
| string | $day | The name of day to check |
Definido na linha 444 do ficheiro mkrono.class.
| isValid | ( | $date | ) |
Function that check the validity of a date and/or time
| string | $date | The date and/or time to check validity of |
Definido na linha 1638 do ficheiro mkrono.class.
| kDate | ( | $format = "%l %d %F %Y", | |
| $timestamp = 0 ) |
Date like function. Using the same format functionality @access public
| string | format ->
| |
| timestamp | $timestamp | The time to transform |
Definido na linha 833 do ficheiro mkrono.class.
| kMkTime | ( | $exp | ) |
Work like php native mktime() but with date accordingly to format used @access private
| array | $exp | The date to transform |
Definido na linha 721 do ficheiro mkrono.class.
| makeTime | ( | ) |
Definido na linha 1869 do ficheiro mkrono.class.
| monthToN | ( | $month | ) |
Convert the name of a month in its numerical value.
| string | $month | The name of month, short or long format, in language setted by constructor |
Definido na linha 392 do ficheiro mkrono.class.
| mysql_time_easy | ( | $timestamp, | |
| $mode = 'mysqlfrom' ) |
Transform a MySQL like timestamp to a readable format (and viceversa)
| timestamp | $timestamp | The mysql timestamp or date |
| string | $mode | mysqlfrom (convert mysql timestamp to readable format) |
| string | $mode | mysqlto (convert a date in readable format to mysql timestamp) |
Definido na linha 1043 do ficheiro mkrono.class.
| netTimestamp | ( | $server = 'time-a.nist.gov', | |
| $port = 37 ) |
Return the timestamp from a NIST TIME SERVER on the net. Get the atomic time!
Definido na linha 996 do ficheiro mkrono.class.
| NToDay | ( | $day | ) |
Convert the numerical value of a day in its name for the setted language by constructor.
| int | $day | The number of day, 0 stay for Sunday and 6 for Saturday |
Definido na linha 372 do ficheiro mkrono.class.
| NToMonth | ( | $month | ) |
Convert the numerical value of a month in its name.
| string | $month | The number of month |
Definido na linha 421 do ficheiro mkrono.class.
| operation | ( | $operator, | |
| $date, | |||
| $operand ) |
Definido na linha 902 do ficheiro mkrono.class.
| pg_time_easy | ( | $timestamp | ) |
Definido na linha 1486 do ficheiro mkrono.class.
| romanDate | ( | $date | ) |
Return the date in ancient roman date format
| date | $date | The date to transform |
Definido na linha 1153 do ficheiro mkrono.class.
| secsToTime | ( | $secs | ) |
Function to turn seconds into a time
| int | $secs | number of seconds to be converted to time of day. |
Definido na linha 1609 do ficheiro mkrono.class.
| swatchTime | ( | ) |
Returns the current time in swatch .beat format. Remember that 1000 beats = 24 hours @access public
Definido na linha 1018 do ficheiro mkrono.class.
| timesAdd | ( | $time, | |
| $add, | |||
| $what ) |
Add some minutes or hours to a given time.
| string | $time | The time string to transform |
| int | $add | The hours or minutes to add |
| char | $what | is what add to time |
Definido na linha 593 do ficheiro mkrono.class.
| timesDiff | ( | $time_from, | |
| $time_to, | |||
| $result_in = "m" ) |
Give the difference between two times.
| string | $time_from | The start time |
| string | $time_to | The end time |
| char | $result_in | The format of result |
Definido na linha 531 do ficheiro mkrono.class.
| timeToText | ( | $seconds, | |
| $format = "h" ) |
Return the literal value of a unix timestamp or seconds
| int | $seconds | Number of seconds to transform. |
| char | $format | The format of output, +"h" for hours.minutes.seconds (short form) +"d" for year.months.days.etc (short form) +"H" for hours.minutes.seconds (long form) +"D" for year.months.days.etc (long form) @access public |
Definido na linha 1509 do ficheiro mkrono.class.
| todayMoonPhase | ( | $date = '' | ) |
Definido na linha 1283 do ficheiro mkrono.class.
| yearMoonPhases | ( | $Y | ) |
Returns an array with all the phases of the moon for a whole year @access public
| int | $Y | is the year to get moon phases. |
Definido na linha 1198 do ficheiro mkrono.class.
| $abbr |
Variable for choose long or short day names format @access public
Definido na linha 88 do ficheiro mkrono.class.
| $dataFrom |
General purpose use @access private
Definido na linha 73 do ficheiro mkrono.class.
| $dataTo |
General purpose use @access private
Definido na linha 78 do ficheiro mkrono.class.
| $dateFormat |
Set to desidered date format @access public
Definido na linha 108 do ficheiro mkrono.class.
| $dayNameCon |
Array that contain the name of days in short format @access private
Definido na linha 58 do ficheiro mkrono.class.
| $dayNameExt |
Array that contain the name of days in long format * @access private
Definido na linha 53 do ficheiro mkrono.class.
| $error |
Used for errors @access private
Definido na linha 83 do ficheiro mkrono.class.
| $lan |
Set to desidered language @access public
Definido na linha 93 do ficheiro mkrono.class.
| $monthNameCon |
Array that contain the name of month in short format @access private
Definido na linha 68 do ficheiro mkrono.class.
| $monthNameExt |
Array that contain the name of month in long format @access private
Definido na linha 63 do ficheiro mkrono.class.
| $path |
Char for path of ini files @access public
Definido na linha 127 do ficheiro mkrono.class.
| $separator |
Char for separating date @access public
Definido na linha 122 do ficheiro mkrono.class.
| $timeFormat |
Set to desidered time format @access public
Definido na linha 117 do ficheiro mkrono.class.
| $version ='0.7' |
Version number @access private
Definido na linha 98 do ficheiro mkrono.class.