IDL Date-time function collation

Source: Internet
Author: User

Like Matlab, IDL also contains date and time functions that allow for specific requirements.

Function Name Function description

Bin_date-converts ASCII date/time string to binary string.-standard date time string converted to 6 element Date array

Caldat-converts Julian date to month, day, year.-Ru Day

Call_external-displays a calendar for a given month or year.-to display calendars on an input date

Julday-returns Julian days number for given month, day, and year.-to Julian Day

Systime-returns the current system time as either a string, the number of seconds, or as a Julian date.-returns

Tic-start the Tick/tock clock for measuring elapsed time.-calculation takes time

Toc-stop the Tick/tock clock for measuring elapsed time.

Timegen-returns an array of Julian Date/time values.-get a Julian day format

Timestamp-returns a date/time string in ISO-8601 format.-get ISO-8601 format time

1  - 9 , $ 2    4  One  -  the )3PRINT, timestamp_string45 >09 -04t11:15Z

Timestamptovalues-returns the date and time, given a date/time string in ISO-8601 format.-to obtain dates and times based on ISO-8601 format time

1Timestamp_string ='2012-09-04t11:25:15-06:00'2  3 Timestamptovalues, timestamp_string, $4Year=year, Month=month, day=Day , $5Hour=hour, minute=minute, $6Second=second, offset=Offset7 PRINT, month, day, year, hour, minute, second, offset8 9>9     4       -      One      -     15.000000-6.000000

IDL Date-time function collation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.