-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(util):1.8.1, 添加GetLocalTimeString()与GetUtcTimeString()函数
- Loading branch information
Showing
5 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* .============. | ||
* // M A K E / \ | ||
* // C++ DEV / \ | ||
* // E A S Y / \/ \ | ||
* ++ ----------. \/\ . | ||
* \\ \ \ /\ / | ||
* \\ \ \ / | ||
* \\ \ \ / | ||
* -============' | ||
* | ||
* Copyright (c) 2024 Hevake and contributors, all rights reserved. | ||
* | ||
* This file is part of cpp-tbox (https://github.com/cpp-main/cpp-tbox) | ||
* Use of this source code is governed by MIT license that can be found | ||
* in the LICENSE file in the root of the source tree. All contributing | ||
* project authors may be found in the CONTRIBUTORS.md file in the root | ||
* of the source tree. | ||
*/ | ||
#include <gtest/gtest.h> | ||
|
||
#include "timestamp.h" | ||
|
||
namespace tbox { | ||
namespace util { | ||
|
||
TEST(Timestamp, GetUtcTimeString) | ||
{ | ||
EXPECT_EQ(GetUtcTimeString(0), "1970-01-01 00:00:00"); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# TBOX版本号 | ||
TBOX_VERSION_MAJOR := 1 | ||
TBOX_VERSION_MINOR := 8 | ||
TBOX_VERSION_REVISION := 0 | ||
TBOX_VERSION_REVISION := 1 |