Skip to content

Adding support for TIME command #254

@lknix

Description

@lknix

After a quick glance it seems something like this should be added to FakeSocket class in order to support the command:

import time

@command(())
def time(self):
  return bytes(time.time()).split(".")

NOTE: I know there are microsecond precission issues with time on Windows (python 2.x), but it's probably good enough for what we want here.

I can open a PR if this is the right approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions