author | Dario Sestito <darios@symbian.org> |
Wed, 03 Mar 2010 16:51:26 +0000 | |
changeset 177 | 6d3c3db11e72 |
parent 3 | 8b87ea768cb8 |
permissions | -rw-r--r-- |
3
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
1 |
#! perl |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
2 |
|
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
3 |
# Copyright (c) 2009 Symbian Foundation Ltd |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
4 |
# This component and the accompanying materials are made available |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
5 |
# under the terms of the License "Eclipse Public License v1.0" |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
6 |
# which accompanies this distribution, and is available |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
8 |
# |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
9 |
# Initial Contributors: |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
10 |
# Symbian Foundation Ltd - initial contribution. |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
11 |
# |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
12 |
# Contributors: |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
13 |
# |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
14 |
# Description: |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
15 |
# Convert timestamps into localtime. |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
16 |
|
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
17 |
my $line; |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
18 |
while ($line = <>) |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
19 |
{ |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
20 |
chomp $line; |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
21 |
my $timestring = localtime($line); |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
22 |
print "$timestring\n"; |
8b87ea768cb8
Add a utility to convert raptor timestamps back into localtime.
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
23 |
} |