Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cside/time-format-mysql
provides from_unixtime() and unix_timestamp()
https://github.com/cside/time-format-mysql
Last synced: 8 days ago
JSON representation
provides from_unixtime() and unix_timestamp()
- Host: GitHub
- URL: https://github.com/cside/time-format-mysql
- Owner: Cside
- License: other
- Created: 2013-05-21T12:12:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-05T12:21:24.000Z (over 11 years ago)
- Last Synced: 2024-10-28T16:34:06.113Z (about 2 months ago)
- Language: Perl
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Time::Format::MySQL - provides from\_unixtime() and unix\_timestamp()
# SYNOPSIS
use Time::Format::MySQL qw(from_unixtime unix_timestamp)
print from_unixtime(time); #=> 2013-01-11 12:03:28
print unix_timestamp('2013-01-11 12:03:28'); #=> 1357873408# DESCRIPTION
Time::Format::MySQL provides mysql-like functions, from\_unixtime() and unix\_timestamp().
# FUNCTIONS
- from\_unixtime($unixtime \[, $format\])
unix timestamp -> date time
- unix\_timestamp($datetime \[, $format\])
date time -> unix timestamp
# SEE ALSO
- [DateTime::Format::MySQL](http://search.cpan.org/perldoc?DateTime::Format::MySQL)
- [Time::Piece::MySQL](http://search.cpan.org/perldoc?Time::Piece::MySQL)# LICENSE
Copyright (C) Hiroki Honda.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.# AUTHOR
Hiroki Honda