Skip to content

Commit

Permalink
Merge pull request #84 from tofubert/fix/doc-string
Browse files Browse the repository at this point in the history
add doc string to NCMessage get date
  • Loading branch information
tofubert authored Jan 10, 2025
2 parents 0484ee4 + f42f4cf commit e9c86fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/nc_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ impl NCMessage {
time.format("%H:%M").to_string()
}

/// return message date as string with given format
pub fn get_date_str(&self, date_format: &str) -> String {
let date: DateTime<Local> = DateTime::from(
DateTime::<Utc>::from_timestamp(self.0.timestamp, 0)
Expand Down

0 comments on commit e9c86fb

Please sign in to comment.