Skip to content

string->date only fails with "bad day" #887

Description

@Efimero

I need to parse some dates, so I imported SRFI-19
When trying to use it it errored with bad day, so I looked at the format
It kept saying bad day, so I started testing... and uhh...
Am I doing something wrong?

stklos> (string->date (date->string (current-date) "~5") "~5")
**** Error:
check: bad day #f
stklos> (string->date (date->string (current-date) "~1") "~1")
**** Error:
check: bad day #f
	(type ",help" for more information)
stklos> (string->date (date->string (current-date) "~2") "~2")
**** Error:
check: bad day #f
	(type ",help" for more information)
stklos> (string->date (date->string (current-date) "~Y") "~Y")
**** Error:
check: bad day #f
	(type ",help" for more information)
stklos> (string->date (date->string (current-date) "~s") "~s")
**** Error:
check: bad day #f
	(type ",help" for more information)
stklos> (string->date (date->string (current-date) "1") "1")
**** Error:
check: bad day #f
	(type ",help" for more information)
stklos> (string->date (date->string (current-date) "") "")
**** Error:
check: bad day #f
	(type ",help" for more information)

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions