title: How would I get the current time (Not 24 hours) using datetime in discord.py?
body: <p>So I'm trying to use the timestamp function to just display the time someone edited their message.
  Currently, this is my code:</p>
  <pre class="lang-py prettyprint-override"><code>@commands.Cog.listener()
  async def on_message_edit(self, before, after):
   if before.author != self.bot.user:
    embed=discord.Embed(title=&quot;{}&quot;.format(before.author), description=&quot;Editted a Message:&quot;,color=0xfcca03)
    embed.add_field(name= &quot;**Before:** &quot; ,value=before.content, inline=False)
    embed.add_field(name= &quot;**After:** &quot;,value=after.content, inline=False)
    embed.add_field(name=&quot;**Details:** &quot;, value = &quot;Channel: &quot; + str(after.channel) + &quot;\n&quot; + &quot;ID: &quot; + str({before.author.id}))
    guild = self.bot.get_guild(357331299792584707)
    embed.set_thumbnail(url = guild.icon_url)
    timestamp = datetime.now() 
    embed.set_footer(text=guild.name + &quot;Timestamp: &quot; + str(timestamp))
    channel = self.bot.get_channel(722949984227688519)
    await channel.send(embed=embed)
  </code></pre>
  <p>The code works but the timestamp is full of other information I don't need.</p>
  <p>Example: <code>Timestamp: 2020-11-13 17:48:24.876424</code></p>
  <p>How would I make it so it looks something like this? &quot;Timestamp: 7:43 PM&quot;</p>
  <p>Any help would greatly help, thank you!</p>