When is the INS tab used?

Source: Internet
Author: User
Tags datetime

The data's explanation for INS is: Define an inserted text. INS has two standard attributes: Cite and DateTime. The cite value is a URL that points to another document that explains why the new text was inserted, a datetime value that specifies the date and time the text was inserted, and the format is Yyyy-mm-ddthh:mm:sstzd, where:

YYYY = 4-digit number for year (as 2008)
MM = 2 digits for month (such as 01,02,... 12)
DD = 2-bit number representing day (such as 01,02,... 31)
HH = 2 digits for hours (such as 01,02,... 24)
MM = 2 is a number that represents minutes (such as 01,02,... 30L
SS = 2 is the number of seconds (such as 01,02,... 30L
TZD = time Zone indicator

If the modified time is: May 28, 2008 21:05:00

Then according to Greenwich Mean Time DateTime's writing is: 2008-05-28t21:05:00z, according to Beijing Times is written: 2008-05-28t21:05:00+08:00. Because Beijing time is 8 hours earlier than Greenwich Standard Time.

So what is inserting a text? As the name suggests, it means inserting a new text into the original document. When using ins, we usually use a different del tag to define the deleted text in the document.

For example, a word news: "5.12 China Wenchuan occurred 7.8 magnitude earthquake." Now after the expert survey is revised to level 8, then you can use INS to insert new text to modify this sentence:

5.12 China Wenchuan occurrence <del cite= "; Datetime= "2008-05-18t19:08:00+08:00" >7.8</del> <ins cite= "; Datetime= "2008-05-18t19:08:00+08:00" >8.0</ins> magnitude earthquake

After modification:

5.12 China Wenchuan 7.8 8 magnitude earthquake

The cite and datetime values explain the reason for the modification and the time date.

Another example: "Warehouse existing 200 tents", today's goods have left 100 top:

Warehouse extant <del datetime= "2008-05-18t19:08:00+08:00" >200</del> <ins datetime= "2008-05-18t19:08:00+08:00" >100</ins> Top Tent

After modification:

Warehouse existing 200 100 Tents

The above 2 examples of using Del and INS give us a clear idea of when the document was modified, why it was modified, and when it was modified.

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.