43 extern FXAPI FXTime timeFromSystemTime(
const Time& st);
46 extern FXAPI
void systemTimeFromTime(
Time& st,FXTime utc);
50 extern FXAPI
const FXchar defaultTimeFormat[];
53 extern FXAPI
const FXchar isoTimeFormat[];
57 extern FXAPI
FXString systemTimeFormat(
const Time& st,
const FXchar* format=defaultTimeFormat);
60 extern FXAPI FXint systemTimeParse(
Time& st,
const FXchar*
string,
const FXchar* format=defaultTimeFormat);
63 extern FXAPI FXint systemTimeParse(
Time& st,
const FXString&
string,
const FXchar* format=defaultTimeFormat);
71 extern FXAPI FXlong daysFromCivil(FXint y,FXint m,FXint d);
79 extern FXAPI
void civilFromDays(FXint& y,FXint& m,FXint& d,FXlong z);
83 extern FXAPI FXival leapSeconds(FXTime utc);
86 extern FXAPI FXival leapSecondsTAI(FXTime tai);
89 extern FXAPI FXTime localTimeZoneOffset();
92 extern FXAPI FXTime daylightSavingsOffset();
95 extern FXAPI FXTime daylightSavingsActive(FXTime utc);
98 extern FXAPI
FXString localTimeZoneName(FXbool dst=
false);
102 extern FXAPI FXTime timeFromNTPTime(FXulong ntptime);
105 extern FXAPI FXulong ntpTimeFromTime(FXTime utc);
109 extern FXAPI
FXString universalTime(FXTime utc,
const FXchar *format=defaultTimeFormat);
112 extern FXAPI FXTime universalTime(
const FXchar*
string,
const FXchar* format=defaultTimeFormat);
113 extern FXAPI FXTime universalTime(
const FXString&
string,
const FXchar* format=defaultTimeFormat);
117 extern FXAPI
FXString localTime(FXTime utc,
const FXchar *format=defaultTimeFormat);
120 extern FXAPI FXTime localTime(
const FXchar*
string,
const FXchar* format=defaultTimeFormat);
121 extern FXAPI FXTime localTime(
const FXString&
string,
const FXchar* format=defaultTimeFormat);
125 extern FXAPI FXuint user();
128 extern FXAPI FXuint group();
131 extern FXAPI
FXString userName(FXuint uid);
134 extern FXAPI
FXString groupName(FXuint gid);
137 extern FXAPI
FXString currentUserName();
140 extern FXAPI
FXString currentGroupName();
144 extern FXAPI
FXString modeString(FXuint mode);
151 extern FXAPI FXbool setEnvironment(
const FXString& name,
const FXString& value);
155 extern FXAPI
FXString getCurrentDirectory();
158 extern FXAPI FXbool setCurrentDirectory(
const FXString& path);
161 extern FXAPI
FXString getCurrentDrive();
164 extern FXAPI FXbool setCurrentDrive(
const FXString& prefix);
168 extern FXAPI
FXString getExecPath();
171 extern FXAPI
FXString getExecExtensions();
174 extern FXAPI
FXString getExecFilename();
177 extern FXAPI
FXString getHomeDirectory();
180 extern FXAPI
FXString getTempDirectory();
183 extern FXAPI
FXString getSystemDirectory();
190 extern FXAPI FXint system(
const FXString& cmd);
193 extern FXAPI
FXString getHostName();
197 extern FXAPI FXbool localeIsUTF8();
FXint mday
Month 1..12.
Definition: FXSystem.h:32
FXint sec
Minutes 0..59.
Definition: FXSystem.h:37
FXint min
Hours 0..23.
Definition: FXSystem.h:36
FXint wday
Day in the year 1..366.
Definition: FXSystem.h:34
System Time in parts.
Definition: FXSystem.h:29
Definition: FX4Splitter.h:28
FXint month
Year (e.g. 1970)
Definition: FXSystem.h:31
FXint hour
Day of the week 0..6.
Definition: FXSystem.h:35
FXint nano
Seconds 0..60.
Definition: FXSystem.h:38
FXint offset
Nanoseconds 0..999999999.
Definition: FXSystem.h:39
FXint yday
Day of the month 1..31.
Definition: FXSystem.h:33
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42