Servicely Administration
Scripting
DateTime API
1 min
constructor description current date, with default locale and time zone clone from an existing datetime object attempt to parse the date using the default format attempt to parse the date using the specified format method description sets the datetime object with the year that was passed in as the parameter sets the datetime object with the month that was passed in as a parameter sets the datetime object with the day that was passed in as a parameter sets the datetime object with the hour that was passed in as a parameter sets the datetime object with the minute that was passed in as a parameter sets the datetime object with the second that was passed in as a parameter sets the datetime object with the milliseconds that was passed in as a parameter adds the number of years passed in as a parameter to the current datetime adds the number of months passed in as a parameter to the current datetime adds the number of days passed in as a parameter to the current datetime adds the number of hours passed in as a parameter to the current datetime adds the number of minutes passed in as a parameter to the current datetime adds the number of seconds passed in as a parameter to the current datetime adds the number of milliseconds passed in as a parameter to the current datetime subtracts the number of years passed in as a parameter to the current datetime subtracts the number of months passed in as a parameter to the current datetime subtracts the number of days passed in as a parameter to the current datetime subtracts the number of hours passed in as a parameter to the current datetime subtracts the number of minutes passed in as a parameter to the current datetime subtracts the number of seconds passed in as a parameter to the current datetime subtracts the number of milliseconds passed in as a parameter to the current datetime gets the year of the current datetime object gets the month of the current datetime object gets the day of the current datetime object gets the hour of the current datetime object gets the minute of the current datetime object gets the second of the current datetime object gets the millisecond of the current datetime object determines if the datetime object is after the datetime object passed in determines if the datetime object is before the datetime object passed in determines if the datetime object is the same the datetime object passed in determines if the datetime object is after or equal to the datetime object passed in determines if the datetime object is before or equal to the datetime object passed in sets the datetime object to the time of the start of the day determines if the datetime object is the same day as the datetime object passed in sets the datetime object passed on the parameters sets the datetime object wit the time passed in as a parameter gets the isoformat of the current datetime object gets the isoformat of the current datetime object in gmt converts a datetime (with an associated timezone) to the same local datetime on another timezone e g 01/jan/2020 10 00 gmt will become 01/jan/2020 10 00 in the target zone checks what the datetime object is in comparison of now adds a timezone to the datetime object adds a locale to the datetime object sets the format of the datetime object based on joda datetime