Skip to content

RFE: Implement date parsing and formatting on Windows just as on other platforms #2071

Closed
@Alanscut

Description

@Alanscut

The parameter strptime of jq-win64_1.6.exe does not work properly.
for example:

windows-64:

# echo '"2015-03-05T23:51:47Z"' | ./jq-win64_1.6.exe 'strptime("%Y-%m-%dT%H:%M:%SZ")'
jq: error (at <stdin>:1): strptime/1 not implemented on this platform

# echo '"2015-03-05T23:51:47Z"' | ./jq-win64_1.6.exe 'fromdate'
jq: error (at <stdin>:1): strptime/1 not implemented on this platform


unbutu:
root@oss-001:test_jq#  echo '"2015-03-05T23:51:47Z"' | jq 'strptime("%Y-%m-%dT%H:%M:%SZ")'
[
  2015,
  2,
  5,
  23,
  51,
  47,
  4,
  63
]
root@oss-001:test_jq#  echo '"2015-03-05T23:51:47Z"'| jq 'fromdate'
1425599507


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