Functions

OsTime

Return the system time

Syntax

Signature
const char *OsTime( void );

Arguments

No arguments.

Return value

The local time as HH:MM:SS in a shared buffer.

Description

Read the local system time as an `hh:mm:ss` string in 24-hour format. Use it for a display label or timestamp and use `Seconds()` when you need a numeric time of day. Copy the text before another `OsTime()` call if you need to keep it.

Example

ostime.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   puts( OsTime() );

   return 0;
}