Skip to content

Can't get the time zone from zoned_time with time zone "" #366

@eitsupi

Description

@eitsupi
library(clock)
x <- zoned_time_now("")
x
#> <zoned_time<nanosecond><Etc/UTC (current)>[1]>
#> [1] "2024-02-29T10:42:02.461454657+00:00"
zoned_time_zone(x)
#> [1] ""

Created on 2024-02-29 with reprex v2.0.2

Related to #365, I want to get the time zone string but it returns an empty string "".
Is this the intended behavior?
If intended, could you please export the zone_current function?

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