Skip to content

馃挕 [REQUEST] - Simplify the access to the current time聽#389

Description

@IaroslavMazur

Summary

Right now, accessing the current time of the Trident Client requires performing the following manipulations:

trident.get_client().get_sysvar::<Clock>().unix_timestamp;

It'd be nice if the above could be achieved by a single function call abstracting the aforementioned complexity away.

Basic Example

trident.get_current_time()

Drawbacks

None

Unresolved questions

No response

Implementation PR

No response

Reference Issues

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions