Difference between revisions of "Freeside:3:Documentation:Developer/FS/Misc/DateTime"

From Freeside
Jump to: navigation, search
m (Edit via perl MediaWiki framework (1.13))
 
m (Edit via perl MediaWiki framework (1.13))
Line 9: Line 9:
 
:Parses a date (and possibly time) from the supplied string and returns the date as an integer UNIX timestamp.
 
:Parses a date (and possibly time) from the supplied string and returns the date as an integer UNIX timestamp.
 
; day_end TIME
 
; day_end TIME
:If the next-bill-ignore-time configuration setting is turned off, just returns the passed-in value.
+
:Parses TIME as an integer UNIX timestamp and returns a new timestamp with the same date but 23:59:59 for the time.
 
 
:If the next-bill-ignore-time configuration setting is turned on, parses TIME as an integer UNIX timestamp and returns a new timestamp with the same date but 23:59:59 for the time.
 
  
 
==BUGS==
 
==BUGS==

Revision as of 13:42, 27 June 2014

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.

BUGS