Skip to main content
100%

foobar script converting yyyy-mm-dd hh:mm:ss dates to korean locale date(yyyy-mm-dd 오전/오후 hh:mm:ss)

✓ Published0🌍 Public
Aanemochore
Last edited Jan 5, 2019
Created on Jan 5, 2019

This visualization demonstrates the conversion of file creation timestamps from the standard `yyyy-mm-dd hh:mm:ss` format into a Korean locale date string that appends 오전 (AM) or 오후 (PM) before the time. It processes a metadata variable `%file_create_datetime%` by extracting the hour and minute components, determining whether the hour falls in the morning or afternoon, and reformatting the time accordingly while preserving the date portion. The script uses the `$date()`, `$left()`, `$right()`, `$trim()`, and `$pad_right()` functions from the Foobar2000 title-formatting language, along with conditional logic via `$if()` and `$strcmp()` to handle the 12-hour conversion. The output displays a localized timestamp such as `2023-04-15 오후 03:30:00`, with the time padded to ensure consistent formatting.

AI-generated description

Similar vizzes