mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-23 11:26:54 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
30 lines
910 B
Objective-C
30 lines
910 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "TGChatTimestamp.h"
|
|
|
|
typedef enum
|
|
{
|
|
TGDateRelativeSpanLately = -2,
|
|
TGDateRelativeSpanWithinAWeek = -3,
|
|
TGDateRelativeSpanWithinAMonth = -4,
|
|
TGDateRelativeSpanALongTimeAgo = -5
|
|
} TGDateRelativeSpan;
|
|
|
|
@interface TGDateUtils : NSObject
|
|
|
|
+ (void)reset;
|
|
|
|
+ (NSString *)stringForFullDate:(int)date;
|
|
+ (NSString *)stringForShortTime:(int)time;
|
|
+ (NSString *)stringForShortTime:(int)time daytimeVariant:(int *)daytimeVariant;
|
|
+ (NSString *)stringForDialogTime:(int)time;
|
|
+ (NSString *)stringForDayOfWeek:(int)date;
|
|
+ (NSString *)stringForMonthOfYear:(int)date;
|
|
+ (NSString *)stringForPreciseDate:(int)date;
|
|
+ (NSString *)stringForApproximateDate:(int)date;
|
|
+ (NSString *)stringForRelativeLastSeen:(int)date;
|
|
+ (NSString *)stringForMessageListDate:(int)date;
|
|
|
|
+ (TGChatTimestamp *)timestampForDateIfNeeded:(int)date previousDate:(NSNumber *)previousDate;
|
|
|
|
@end
|