BSB Developer Docs
Loading...
Searching...
No Matches
js_app_settings_time.h File Reference

Time of day type for application settings. More...

#include <furi.h>
#include <utz/utz.h>

Go to the source code of this file.

Data Structures

struct  JsAppSettingsTimeValue
 Time of day value. More...
 

Functions

bool js_app_settings_time_parse (const char *string, JsAppSettingsTimeValue *value)
 Parse a time of day string.
 
void js_app_settings_time_format (const JsAppSettingsTimeValue *value, FuriString *string)
 Format a time of day as a string.
 

Detailed Description

Time of day type for application settings.

Function Documentation

◆ js_app_settings_time_format()

void js_app_settings_time_format ( const JsAppSettingsTimeValue * value,
FuriString * string )

Format a time of day as a string.

Parameters
[in]valueTime of day.
[out]stringOutput, zero-padded "HH:MM" or "HH:MM:SS".

◆ js_app_settings_time_parse()

bool js_app_settings_time_parse ( const char * string,
JsAppSettingsTimeValue * value )

Parse a time of day string.

Parameters
[in]string"HH:MM" or "HH:MM:SS".
[out]valueParsed time of day; has_seconds is set for the long form.
Returns
true if the string is a valid time, false otherwise.