<% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>

freeside-sqlradius-seconds

NAME

freeside-sqlradius-seconds - Command line time-online tool

SYNOPSIS

  freeside-sqlradius-seconds freeside_username target_username start_date [ stop_date ]

DESCRIPTION

Returns the number of seconds the specified username has been online between start_date (inclusive) and stop_date (exclusive). See "seconds_since_sqlradacct" in FS::svc_acct

freeside_username is a username added by freeside-adduser. target_username is the username of the user account to query. start_date and stop_date are in any format Date::Parse is happy with. stop_date defaults to now if not specified.

BUGS

Selection of the account in question is rather simplistic in that target_username doesn't necessarily identify a unique account (and wouldn't even if a domain was specified), and no sqlradius export is checked for.

SEE ALSO

"seconds_since_sqlradacct" in FS::svc_acct

<% include ('/elements/footer.html' ) %>