Files
redAcore/DateTimeCore.h
Charl Wentzel 4af8f529c9 Minor Update:
- DateTimeCore:
  - Change default separators for date/time, allow no separators
- JSONparseCore:
  - Bug fix: Output escape sequences in Hexadecimal
2017-08-23 18:03:11 +02:00

33 lines
1011 B
C

/*
* DateTimeCore.h
*
* Created on: 3 Mar 2017
* Author: wentzelc
*/
#ifndef REDACORE_DATETIMECORE_H_
#define REDACORE_DATETIMECORE_H_
// Standard C/C++ Libraries
#include <cstdlib>
// redA Libraries
/* none */
//---------------------------------------------------------------------------
// Get and set System Date and Time
bool SetTime( unsigned char Hours, unsigned char Minutes, unsigned char Seconds );
bool GetTime( unsigned char &Hours, unsigned char &Minutes, unsigned char &Seconds );
bool SetDate( unsigned char Day, unsigned char Month, unsigned Year );
bool GetDate( unsigned char &Day, unsigned char &Month, unsigned &Year );
char const * GetDateStr( const char * DateSeparator = "/" );
char const * GetTimeStr( const char * TimeSeparator = ":" );
char const * GetDateTimeStr( const char * DateSeparator = "/", const char * TimeSeparator = ":" );
//---------------------------------------------------------------------------
#endif /* REDACORE_DATETIMECORE_H_ */