Freeside:4:Documentation:Developer/FS/Misc/DateTime

From Freeside
< Freeside:4:Documentation:Developer‎ | FS‎ | Misc
Revision as of 07:35, 18 November 2015 by Jeremyd (talk | contribs) (Edit via perl MediaWiki framework (1.13))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NAME

FS::Misc::DateTime - Date and time subroutines

SYNOPSIS

use FS::Misc::DateTime qw( parse_datetime );

SUBROUTINES

parse_datetime STRING
Parses a date (and possibly time) from the supplied string and returns the date as an integer UNIX timestamp.
day_end TIME
Parses TIME as an integer UNIX timestamp and returns a new timestamp with the same date but 23:59:59 for the time.
iso8601 TIME
Parses time as an integer UNIX timestamp and returns the ISO 8601 formatted date and time.

BUGS