Skip to content

[Feature]: Change java.util.Date to java.time.LocalDateTime in Clock API #1686

Description

@lubomsky

🚀 Feature Request

Implementing code using Clock is not as pleasant as it could be.

Example

Now, I have to write something like this:

Instant instant = Instant.now().plus(10, ChronoUnit.MINUTES);
Date date = Date.from(instant);

page.clock().setSystemTime(date)

But I would like to write just like this:

page.clock().setSystemTime(LocalDateTime.now().plusMinutes(10))

Motivation

To use more modern and more convenient java.

First article

Second article

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions