Skip to content

💡 [REQUEST] - Simplify the access to the current time #389

@IaroslavMazur

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

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