Microsoft SDK for Java

getLastModificationTime

The getLastModificationTime method of the ClientStore Class contains the following signatures:

getLastModificationTime(String stgfilename)
getLastModificationTime(String stgfilename, int flags)

getLastModificationTime(String stgfilename)

Retrieves the time that the specified file was last modified.

Syntax

public long getLastModificationTime(String stgfilename) throws IOException;

CAUTION   The return value is system-dependent and should only be used to compare with values returned by lastModified. It should not be interpreted as an absolute time.

Return Value

Returns the time that the file specified by this object was last modified.

Parameters

stgfilename The name of the file whose last modification time is being retrieved.

Exceptions

IOException if the file name is invalid or if the file does not exist.

getLastModificationTime(String stgfilename, int flags)

Retrieves the time that the specified file was last modified.

Syntax

public long getLastModificationTime(String stgfilename, int flags) throws IOException;

CAUTION   The return value is system-dependent and should only be used to compare with values returned by lastModified. It should not be interpreted as an absolute time.

Return Value

Returns the time that the file specified by this object was last modified.

Parameters

stgfilename The name of the file whose last modification time is being retrieved.
flags A value that indicates the storage area in which to search for stgfilename. It can be one or both of the STORE_FL_LOCAL and STORE_FL_ROAMING flags.

Exceptions

IOException if the file name is invalid or if the file does not exist.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.