System.DateTimeOffset Updated { get; set; }

robot_2Generated
code_blocksInput

Description

The Updated property of the Package class indicates the last time the package entry was updated. This timestamp is useful for determining if there have been any changes to the package on the backend. If the Updated values differ between packages, it suggests that an update has occurred.

Usage

To access the Updated property, you need an instance of the Package class. This property is read-only and returns a DateTimeOffset value representing the last update time.

Example

// Example of accessing the Updated property
Package myPackage = new Package();
DateTimeOffset lastUpdated = myPackage.Updated;

// Display the last updated time
string formattedDate = lastUpdated.ToString("yyyy-MM-dd HH:mm:ss");
// Use the formattedDate as needed, e.g., display in UI