Lingo Dictionary > L-N > netLastModDate() |  |

netLastModDate()

Syntax

    netLastModDate()

Description

Function; returns the date last modified from the HTTP header for the specified item. The string is in Universal Time (GMT) format: `Ddd, nn Mmm yyyy hh:mm:ss` `GMT` (for example, Thu, 30 Jan 1997 12:00:00 AM GMT). There are variations where days or months are spelled completely. The string is always in English.

The`netLastModDate` function can be called only after `netDone` and `netError` report that the operation is complete and successful. After the next operation starts, the Director movie or projector discards the results of the previous operation to conserve memory.

The actual date string is pulled directly from the HTTP header in the form provided by the server. However, this string is not always provided, and in that case `netLastModDate` returns `EMPTY`.

When a movie plays back as an applet, this function's date format may differ from the date format that Shockwave uses; the date is in the format that the Java function `Date.asString` returns. The format may also vary on systems that use different languages.

Example

These statements check the date of a file downloaded from the Internet:

    if netDone() then
    	theDate = netLastModDate()
    	if theDate.char[6..11] <> "Jan 30" then
    		alert "The file is outdated."
    	end if
    end if

See also

`netDone()`, `netError()`