Skip to content

Adds a new time function, formatted_timestamp #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 10, 2025

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented May 2, 2025

This adds a simple function, formatted_offset

It is basically just a wrapper around chrono's formatting, and takes two args: a format, and an optional offset

If the offset is blank, then the system's local time will be used, in order to stay consistent with the behavior of BYOND's time2text - otherwise, an offset from UTC in hours can be given.

basically this is better time2text, with subsecond support and such

@ZeWaka
Copy link
Collaborator

ZeWaka commented May 2, 2025

I need to fix the stuff in master

@Absolucy Absolucy requested a review from ZeWaka May 3, 2025 00:29
@ZeWaka ZeWaka merged commit d615418 into tgstation:master May 10, 2025
4 checks passed
@Absolucy Absolucy deleted the human_readable_timestamp branch May 10, 2025 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants