Skip to content

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

@lubomsky

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions