Create a Timestamp from datetime with tzinfo. :rtype: Timestamp
(dt)
| 161 | |
| 162 | @staticmethod |
| 163 | def from_datetime(dt): |
| 164 | """Create a Timestamp from datetime with tzinfo. |
| 165 | |
| 166 | :rtype: Timestamp |
| 167 | """ |
| 168 | return Timestamp.from_unix(dt.timestamp()) |