VF_PERIOD_STRING_TO_TIME(3)

πŸ“¦ version 1.13, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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 by c2man off vf_iface.h, dated 30 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