VF_PERIOD_STRING_TO_TIME(3)
π vf_period_string_to_time(3) π
okay bestie, welcome to the Library Functions Manual β¨ this one lives in section 3 and it's literally called vf_period_string_to_time, no notes π
πΈ NAME πΈ
vf_period_string_to_time β yes she's vf_period_string_to_time(), she contains multitudes, she says her own name twice, iconic behavior fr fr π«Ά
β¨ SYNOPSIS β¨
#include <../vformat/vf_iface.h>
extern bool_t vf_period_string_to_time
(
VF_ISO8601_PERIOD_T *p_period,
const char *p_string
);
like. look at her. two args, one bool_t, zero drama π
π PARAMETERS π
VF_ISO8601_PERIOD_T *p_periodβ this is the output bestie, the time value comes OUT of here, she's the vessel, the moment, the destination π¦const char *p_stringβ and this is the input string, the raw material, the vibe you're feeding in π«
π DESCRIPTION π
so the whole gig: you hand her a period definition string and she converts it into an actual time value. that's it. that's the job. lowkey powerful ngl π₯
the format is this, and I need you to memorize it like it's your locker combo:
P[aaaY][bbbM][cccW][dddD]T[eeeH][fffM][gggS]
where aaa is a number of years, bbb months, etc. yes the letters repeat across both halves, yes it's giving chaos, no we do not make the rules, we just parse them π
so you got Y years, M months, W weeks, D days, then the T divider (main character moment honestly), then H hours, M minutes (again with the M, I know), and S seconds. every bracket is optional, every chunk is just a number plus its letter. periodt. π
β RETURNS β
TRUE <=> conversion OK, FALSE else. that's it, that's the whole vibe check β she ate or she didn't π
π SEE ALSO π
the whole friend group, the entire group chat, every single one of them, no cap:
vf_parse_init(3), vf_parse_text(3), vf_parse_end(3), vf_read_file(3), vf_write_file(3), vf_get_next_object(3), vf_create_object(3), vf_get_object_type(3), vf_get_property(3), vf_get_property_ex(3), vf_get_next_property(3), vf_get_prop_value(3), vf_set_prop_value(3), vf_get_prop_value_string(3), vf_get_prop_name_string(3), vf_set_prop_name_string(3), vf_get_prop_name(3), vf_get_prop_value_object(3), vf_set_prop_value_object(3), vf_set_prop_value_string(3), vf_set_prop_value_base64(3), vf_get_prop_value_base64(3), vf_set_property_from_file(3), vf_delete_object(3), vf_delete_prop(3), vf_find_prop_qual_index(3), vf_is_modified(3), vf_find_charset(3), vf_date_string_to_time(3), vf_period_time_to_string(3), vf_set_prop_value_time(3), vf_get_prop_value_time(3)
π«Ά and that's the page bestie!! generated byc2manoffvf_iface.h, dated30 April 2003β so yes, this manual page is older than most of us and still serving absolute looks πβ¨ love that for her π
π¦ where this page comes from
- debian bookworm: libvformat-dev 1.13-12 Β· LGPL-2.1-or-later
- ubuntu jammy: libvformat-dev 1.13-12build2 Β· LGPL-2.1-or-later
- ubuntu noble: libvformat-dev 1.13-12.1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms