share a few helpers between datetime.cpp and datetimefmt.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -63,6 +63,16 @@
|
||||
// implementation of wxDateTime
|
||||
// ============================================================================
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// helpers shared between datetime.cpp and datetimefmt.cpp
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
extern void InitTm(struct tm& tm);
|
||||
|
||||
extern int GetTimeZone();
|
||||
|
||||
extern wxString CallStrftime(const wxString& format, const tm* tm);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants (see also datetime.cpp)
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -174,13 +184,6 @@ static wxDateTime::WeekDay GetWeekDayFromName(const wxString& name, int flags)
|
||||
return wd;
|
||||
}
|
||||
|
||||
/* static */
|
||||
struct tm *wxDateTime::GetTmNow(struct tm *tmstruct)
|
||||
{
|
||||
time_t t = GetTimeNow();
|
||||
return wxLocaltime_r(&t, tmstruct);
|
||||
}
|
||||
|
||||
// scans all digits (but no more than len) and returns the resulting number
|
||||
static bool GetNumericToken(size_t len,
|
||||
const wxStringCharType*& p,
|
||||
|
Reference in New Issue
Block a user