forked from github-starred/komodo
make some prog on the row data
This commit is contained in:
@@ -20,10 +20,16 @@ export const RESOURCE_TARGETS: UsableResource[] = [
|
||||
"Procedure",
|
||||
];
|
||||
|
||||
export const fmt_update_date = (d: Date) =>
|
||||
`${d.getDate()}/${d.getMonth() + 1} @ ${d.getHours()}:${d.getMinutes()}`;
|
||||
export const fmt_update_date = (d: Date) => {
|
||||
return `${d.getDate()}/${d.getMonth() + 1} @ ${d.getHours()}:${d.getMinutes()}`;
|
||||
};
|
||||
|
||||
export const fmt_verison = (version: Types.Version | undefined) => {
|
||||
export const fmt_date_with_minutes = (d: Date) => {
|
||||
// return `${d.toLocaleDateString()} ${d.toLocaleTimeString()}`;
|
||||
return d.toLocaleString()
|
||||
}
|
||||
|
||||
export const fmt_version = (version: Types.Version | undefined) => {
|
||||
if (!version) return "...";
|
||||
const { major, minor, patch } = version;
|
||||
if (major === 0 && minor === 0 && patch === 0) return "latest";
|
||||
|
||||
Reference in New Issue
Block a user