internet

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
internet
Summary

Specifies a format for the date function and the convert command.

Introduced1.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put "Date:" && the internet date & return after field "Mail Header"
Values
NameTypeDescription
The result

You can use the modifiers long, short, and abbreviated in conjunction with the internet keyword without causing a script error, but they have no effect on the resulting date.

RelatedKeyword: short, abbreviated
Command: convert, set
Function: format, propertyNames, date
Control Structure: function
Glossary: keyword, property, command, protocol, error, expression
Description

Use the internet keyword to work with dates in email headers and other dates generated by standard Internet protocols that use the same format.

The internet form of a date consists of the following parts, separated by spaces:

  • the day of the week followed by a comma
  • the day of the month
  • the three-letter abbreviation for the month name
  • the four-digit year
  • the time in 24-hour format, including seconds, delimited by colons
  • the four-digit time zone relative to UTC (Greenwich) time

An internet date looks like this: Sun, 28 Oct 2001 17:18:54 -0800

Note: The internet keyword is implemented internally as a property and appears in the propertyNames. However, it cannot be used as a property in an expression, nor with the set command.

For technical information about the date format produced by the internet keyword, see RFC 2822.

Tagsmath