allow to parse a time decimal fraction in ParseTime() method

while here:
- let ParseDate() is able to parse such formats: "20081012" (without a separator)
  and without the month or day e.g: "2008" or "200810"
- let ParseTime() is able to parse a time without separators, e.g.:
  "141030", or "1410" or just "14"
- let Parse(...) method use ParseDate() and ParseTime()
  this will parse a format similar to ISO 8601
This commit is contained in:
2022-12-23 02:15:11 +01:00
parent 3b3c04b85d
commit 379adf6a69
7 changed files with 346 additions and 128 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2012-2021, Tomasz Sowa
* Copyright (c) 2012-2022, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -32,8 +32,8 @@
*
*/
#ifndef headerfile_pikotools_src_membuffer_convert_convert
#define headerfile_pikotools_src_membuffer_convert_convert
#ifndef headerfile_pikotools_src_convert_convert
#define headerfile_pikotools_src_convert_convert
#include "inttostr.h"

View File

@@ -32,8 +32,8 @@
*
*/
#ifndef headerfile_pikotools_src_membuffer_convert_double
#define headerfile_pikotools_src_membuffer_convert_double
#ifndef headerfile_pikotools_src_convert_double
#define headerfile_pikotools_src_convert_double
#include <string>