start on statuses table list thing
This commit is contained in:
1 parent
56ea3e0904
commit
9e1d40333c
19 files changed
+498
-125
No files matched your search
@@ -18,3 +18,19 @@ export const ccn = ({
|
||||
}) => {
|
||||
return twMerge(className, context ? on : off);
|
||||
};
|
||||
|
||||
export const formatTime = (timestamp: string) => {
|
||||
const date = new Date(timestamp);
|
||||
const time = date.toLocaleTimeString('en-US', {
|
||||
hour: 'numeric',
|
||||
minute: 'numeric',
|
||||
});
|
||||
return time;
|
||||
};
|
||||
|
||||
export const formatDate = (timestamp: string) => {
|
||||
const date = new Date(timestamp);
|
||||
const day = date.getDate();
|
||||
const month = date.toLocaleString('default', { month: 'long' });
|
||||
return `${month} ${day}`;
|
||||
};
|
||||
Reference in new issue
Block a user