F5 Sites
  • F5.com
  • F5 Labs
  • MyF5
  • NGINX
  • Partner Central
  • Education Services Portal (ESP)
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
GroupsEventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. Articles
  3. Technical Articles

iControl Apps - #05 - Rate Based Statistics

One of the key features of iControl is the ability to monitor statistics of the various objects on the system.  Whether it's for capacity planning or auditing and billing purposes, the numbers behind...
Published Jul 24, 2008
Version 1.0
application delivery
automation
dev
devops
events
iControl
iRules
news
series-icontrol-apps
tech tip
Joe_Pruitt's avatar
Joe_Pruitt
Joined September 22, 2004
View Profile
Joe_Pruitt's avatar
Joe_Pruitt
Dec 23, 2009
That could be a cut and paste bug. Can you just remove all the newlines and make

 

 

$dt = $dt.AddYears($TimeStamp.year-1)

 

.AddMonths($TimeStamp.month-1)

 

.AddDays($TimeStamp.day-1)

 

.AddHours($TimeStamp.hour)

 

.AddMinutes($TimeStamp.minute)

 

.AddSeconds($TimeStamp.second);

 

 

code into a single line?

 

 

$dt = $dt.AddYears($TimeStamp.year-1).AddMonths($TimeStamp.month-1)...

 

 

That should fix things up for you.

 

 

-Joe

Help guide the future of your DevCentral Community!

What tools do you use to collaborate? (1min - anonymous)

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesTraining & Certification

SUPPORT

Manage SubscriptionsProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

©2024 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information