forked from overtake/telegram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTGDateUtils.h
34 lines (27 loc) · 921 Bytes
/
TGDateUtils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import <Foundation/Foundation.h>
@interface TGDateUtils : NSObject
+ (NSString *)stringForShortTime:(int)time;
+ (NSString *)stringForDialogTime:(int)time;
+ (NSString *)stringForDayOfMonth:(int)date dayOfMonth:(int *)dayOfMonth;
+ (NSString *)stringForDayOfWeek:(int)date;
+ (NSString *)stringForMessageListDate:(int)date;
+ (NSString *)stringForLastSeen:(int)date;
+ (NSString *)stringForLastSeenShort:(int)date;
+ (NSString *)stringForRelativeLastSeen:(int)date;
+ (NSString *)stringForUntil:(int)date;
+ (NSString *)stringForDayOfMonthFull:(int)date dayOfMonth:(int *)dayOfMonth;
@end
#ifdef __cplusplus
extern "C" {
#endif
bool TGUse12hDateFormat();
#ifdef __cplusplus
}
#endif