A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://technical.swissmicros.com/dmcp/doc/DMCP-ifc-html/group__time.html below:

DMCP interface: Date/Time Functions

Date/Time Functions. More...

const char *  get_wday_shortcut (int day)   Three character shortcut of day name.
  const char *  get_month_shortcut (int month)   Three character shortcut of month name.
  int  julian_day (dt_t *d)   Calculates Julian day for given date.
  void  julian_to_date (int julian_day, dt_t *d)   Calculates date for given Julian day.
  void  print_dmy_date (char *s, int const sz, dt_t *dt, const char *prefix, int shortmon, char sep_arg)   Formats date according to supplied and system flags.
  void  print_clk24_time (char *t, int const sz, tm_t *tm, int disp_sec, int disp_dow)   Formats time according to supplied and system flags.
 

Date/Time Functions.

◆ get_month_shortcut() const char * get_month_shortcut ( int month )

Three character shortcut of month name.

Parameters
month Month number (1 = Jan)
◆ get_wday_shortcut() const char * get_wday_shortcut ( int day )

Three character shortcut of day name.

Parameters
◆ print_clk24_time() void print_clk24_time ( char * t, int const sz, tm_t * tm, int disp_sec, int disp_dow )

Formats time according to supplied and system flags.

Parameters
[out] t Buffer for resulting string sz Size of resulting string tm Time to format disp_sec (0/1) 1 = Seconds are displayed disp_dow (0/1) 1 = Day of week is displayed

This function also honors system clk24 flag (accessed by system using set_flag_clk24/is_flag_clk24 functions)

◆ print_dmy_date() void print_dmy_date ( char * s, int const sz, dt_t * dt, const char * prefix, int shortmon, char sep_arg )

Formats date according to supplied and system flags.

Parameters
[out] s Buffer for resulting string sz Size of resulting string dt Date to format prefix Optional prefix string printed in front of date or NULL shortmon (0/1) 0 - month as number, 1 - month as 3char shortcut sep_arg field separator or 0 = default (/)

This function also honors system DMY flag (accessed by system using set_flag_dmy/get_flag_dmy functions).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4