comparison docs/modules/txt/TimeUtil.txt @ 0:4816e4a8ae95 draft default tip

Uploaded
author deepakjadmin
date Wed, 20 Jan 2016 09:23:18 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4816e4a8ae95
1 NAME
2 TimeUtil
3
4 SYNOPSIS
5 use TimeUtil;
6
7 use TimeUtil qw(:all);
8
9 DESCRIPTION
10 TimeUtil module provides the following functions:
11
12 CTimeStamp, FPFileTimeStamp, ISO8601Date, ISO8601Time, ISO8601TimeStamp,
13 MonthNameToNumber, MonthNumberToAbbreviatedName, MonthNumberToFullName,
14 PDBFileTimeStamp, SDFileTimeStamp, TimeStamp, WeekDayNameToNumber,
15 WeekDayNumberToAbbreviatedName, WeekDayNumberToFullName
16
17 FUNCTIONS
18 CTimeStamp
19 $CTimeStamp = CTimeStamp();
20
21 Returns CTimeStamp string using the following format: WDay Mon MDay
22 HH:MM:SS YYYY
23
24 FPFileTimeStamp
25 $FPFileTimeStamp = FPFileTimeStamp();
26
27 Returns fingerints FP file time stamp string for MayaChemTools
28 package. It corresponds to CTimeStamp.
29
30 ISO8601Date
31 $Date = ISO8601Date();
32
33 Returns ISO8601 Date string using the following format:
34 [YYYY]-[MM]-[DD]
35
36 ISO8601Time
37 $Time = ISO8601Time();
38
39 Returns ISO8601 Time string using the following extended format:
40 [hh]:[mm]:[ss]
41
42 ISO8601TimeStamp
43 $TimeStamp = ISO8601TimeStamp();
44
45 Returns ISO8601 TimeStamp string using the following extended
46 format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]
47
48 MonthNameToNumber
49 $Number = MonthNameToNumber($Name);
50
51 Return month Number for full month *Name* or three letter
52 abbreviated month *Name*.
53
54 MonthNumberToAbbreviatedName
55 $AbbrevMonthName = MonthNumberToAbbreviatedName($Number);
56
57 Returns three letter AbbrevMonthName for month *Number*.
58
59 MonthNumberToFullName
60 $Name = MonthNumberToFullName($Number);
61
62 Returns full month Name for month *Number*.
63
64 PDBFileTimeStamp
65 $TimeStamp = PDBFileTimeStamp();
66
67 Returns PDB file TimeStamp using the following format: DD-MMM-YY
68
69 SDFileTimeStamp
70 $TimeStamp = SDFileTimeStamp();
71
72 Returns SD file TimeStamp using the following format: MMDDYYHHMM
73
74 TimeStamp
75 $TimeStamp = TimeStamp();
76
77 Returns deafult *TimeStamp* for MayaChemTools. It corresponds to
78 CTimeStamp.
79
80 WeekDayNameToNumber
81 $Number = WeekDayNameToNumber($Name);
82
83 Returns week day Number from full week day *Name* or three letter
84 abbreviated week day *Name*.
85
86 WeekDayNumberToAbbreviatedName
87 $Name = WeekDayNumberToAbbreviatedName($Number);
88
89 Returns three letter abbreviates week day Name for week day
90 *Number*.
91
92 WeekDayNumberToFullName
93 $Name = WeekDayNumberToFullName($Number);
94
95 Returns full week day Name for week day *Number*.
96
97 AUTHOR
98 Manish Sud <msud@san.rr.com>
99
100 SEE ALSO
101 FileUtil.pm, TextUtil.pm
102
103 COPYRIGHT
104 Copyright (C) 2015 Manish Sud. All rights reserved.
105
106 This file is part of MayaChemTools.
107
108 MayaChemTools is free software; you can redistribute it and/or modify it
109 under the terms of the GNU Lesser General Public License as published by
110 the Free Software Foundation; either version 3 of the License, or (at
111 your option) any later version.
112