Skip to content

Add precision option to to_datetime_string() #191

@leafonsword

Description

@leafonsword

to_datetime_string()'s result just to second precision:

>>> dt = pendulum.now()
>>> dt.to_datetime_string()
'2018-04-11 15:44:44'

Could to_datetime_string() add a option letting user choosing other precison such as millisecond、micosecond? While default precisipn still to be second ~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions