FileOpenContext.timestamp Property

Parent Object: FileOpenContext
Defined in namespace "adsk::core" and the header file is <Core/Application/FileOpenContext.h>

Description

Gets and sets the timestamp associated with the file open operation. The timestamp is an ISO 8601-formatted UTC string (e.g., "2026-01-12T08:24:46.398Z") that identifies a specific point in the document's history. This timestamp can be obtained by making a history GraphQL call that returns history timestamps.

Syntax

"fileOpenContext_var" is a variable referencing a FileOpenContext object.

# Get the value of the property.
propertyValue = fileOpenContext_var.timestamp

# Set the value of the property.
fileOpenContext_var.timestamp = propertyValue
"fileOpenContext_var" is a variable referencing a FileOpenContext object.
#include <Core/Application/FileOpenContext.h>

// Get the value of the property.
string propertyValue = fileOpenContext_var->timestamp();

// Set the value of the property, where value_var is a string.
bool returnValue = fileOpenContext_var->timestamp(value_var);

Property Value

This is a read/write property whose value is a string.

Samples

Name Description
File Open Sample Demonstrates how to open files using the Open API and OpenUsingContext API. The sample shows how to open a file at the tip (latest version) and how to open historical versions of a file. It uses the Open API to open files at tip and iterate through historical versions, and the OpenUsingContext API to open file using FileOpenContext .

Version

Introduced in version April 2026