BEAST/BSE - Better Audio System and Sound Engine
0.8.2
|
00001 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html 00002 #ifndef __SFI_TIME_H__ 00003 #define __SFI_TIME_H__ 00004 00005 #include <sfi/sfivalues.hh> 00006 00007 G_BEGIN_DECLS 00008 00009 /* --- time (unix micro seconds) --- */ 00010 #define SFI_USEC_FACTOR ((SfiTime) 1000000) /* 64bit wide */ 00011 #define SFI_MIN_TIME (631152000 * SFI_USEC_FACTOR) /* 1990-01-01 00:00:00 UTC */ 00012 #define SFI_MAX_TIME (2147483647 * SFI_USEC_FACTOR) /* 2038-01-19 03:14:07 UTC */ 00013 00014 00015 /* --- functions --- */ 00016 SfiTime sfi_time_system (void); /* utc */ 00017 SfiTime sfi_time_to_utc (SfiTime ustime); 00018 SfiTime sfi_time_from_utc (SfiTime ustime); 00019 gchar* sfi_time_to_string (SfiTime ustime); 00020 gchar* sfi_time_to_nice_string (SfiTime ustime, 00021 const gchar *elements); 00022 SfiTime sfi_time_from_string (const gchar *time_string); 00023 SfiTime sfi_time_from_string_err (const gchar *time_string, 00024 gchar **error_p); 00025 00026 00027 /* --- internal --- */ 00028 void _sfi_init_time (void); 00029 00030 00031 G_END_DECLS 00032 00033 #endif /* __SFI_TIME_H__ */ 00034 00035 /* vim:set ts=8 sts=2 sw=2: */