CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-expo-application

A universal module that gets native application information such as its ID, app name, and build version at runtime

Overall
score

98%

Overview
Eval results
Files

task.mdevals/scenario-3/

Update Tracker

Build a function that retrieves and formats the app's last update timestamp.

Requirements

Create a module that provides a function to get when the app was last updated and format it for display.

The function should:

  • Retrieve the timestamp of the last update
  • Format the date as a human-readable string in the format: "YYYY-MM-DD HH:MM:SS"
  • Return the formatted string
  • Handle cases where the update time cannot be retrieved by returning "Unknown"

Test Cases

  • When the update time is retrieved successfully, it returns a formatted date string @test
  • When the update time cannot be retrieved, it returns "Unknown" @test

Implementation

@generates

API

/**
 * Gets the last update time of the app and formats it as a string.
 * Returns "Unknown" if the update time cannot be determined.
 */
export function getFormattedUpdateTime(): Promise<string>;

Dependencies { .dependencies }

expo-application { .dependency }

Provides access to native application information including update timestamps.

Install with Tessl CLI

npx tessl i tessl/npm-expo-application

tile.json