Skip to main content
Glama
timestamp.rs601 B
use chrono::{ DateTime, Utc, }; use serde::{ Deserialize, Serialize, }; #[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, PartialOrd, Ord, Serialize, Hash)] pub struct Timestamp { pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, } impl Timestamp { pub fn now() -> Self { let now = Utc::now(); Self { created_at: now, updated_at: now, } } pub fn new(created_at: DateTime<Utc>, updated_at: DateTime<Utc>) -> Self { Self { created_at, updated_at, } } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server