Compare commits

..

No commits in common. "82b8a679e7ca29858b80930b79e5e1f6ca93152a" and "cb9e57492e539cbd1a464d2031dd5cc07316da6c" have entirely different histories.

3 changed files with 5 additions and 7 deletions

View file

@ -6,8 +6,8 @@
.dependencies = .{
.syntax = .{
.url = "git+https://github.com/neurocyte/flow-syntax?ref=master#880eac1a7ef51da53ae5116d69623169e74942fc",
.hash = "flow_syntax-0.7.2-X8jOoXQZAQBvCqbqNVrI8MaCJGtp4dArhaki8igH9F3d",
.url = "git+https://github.com/neurocyte/flow-syntax?ref=master#5c8b804defff9f98a367adca1008c8d4e5945053",
.hash = "flow_syntax-0.7.2-X8jOoZAXAQBmKDyJqElxHRDqkQu5YfS54dXes-tw6zPh",
},
.flags = .{
.url = "git+https://github.com/neurocyte/flags?ref=main#984b27948da3e4e40a253f76c85b51ec1a9ada11",

View file

@ -1,7 +1,5 @@
pub const agda = .{};
pub const asm = .{};
pub const astro = .{
.language_server = .{ "astro-ls", "--stdio" },
};

View file

@ -9,11 +9,11 @@ pub fn age_short(timestamp: i64) struct {
else if (age < 86400)
writer.print("{d}h", .{@divTrunc(age, 3600)})
else if (age < 2592000)
writer.print("{d}D", .{@divTrunc(age, 86400)})
writer.print("{d}d", .{@divTrunc(age, 86400)})
else if (age < 31536000)
writer.print("{d}M", .{@divTrunc(age, 2592000)})
writer.print("{d}mo", .{@divTrunc(age, 2592000)})
else
writer.print("{d}Y", .{@divTrunc(age, 31536000)});
writer.print("{d}y", .{@divTrunc(age, 31536000)});
}
} {
return .{ .timestamp = timestamp };